home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacTech 1 to 12
/
MacTech-vol-1-12.toast
/
Reference
/
the cmsp digests ('94-'97)
/
csmp digest Vol 4 No 005
< prev
next >
Wrap
Text File
|
1996-10-27
|
132KB
|
3,941 lines
C.S.M.P. Digest Tue, 01 Oct 96 Volume 4 : Issue 5
Today's Topics:
"HyperCard Heaven" update
CodeManager 1.0.6 Update doesn't work! Help!
Disk space efficiency (Was: MacOS 8: What is-was the critical path?)
HELP: Importing undelimited data into FoxPro or FMpro v3
Help convince client to do Mac games
Help w- the Slot Mgr
Looking for ASM-370 & COBOL for PPC
Mac & Intel Dev. System
Mac Programmer wanted in BA, CA
OpenDoc & Clipping files
PICT disassembly -- source? tools?
Page orientation
Passing a pointer to a handle
PowerPlant any good?
Reference Tools
SetGWorld needed before CopyBits?
Stress Testing - QC - CW
SymC++ bug: cout not constructed in a timely manner
TCP-IP server code for Open Transport?
TextEdit Question
UNIX - editing UNIX files with a Mac editor
When are dialog items drawn?
[Job] Metrowerks Java Team
[Q] Can't create CWindow correctly?
[Q] Hiliting Text in C
[Q] What is QuickDraw 3D and QuickDraw GX?
[Q] sending files by FTP from a program
diff on resource forks of duplicate files
The Comp.Sys.Mac.Programmer Digest is moderated by Mark Aiken
(marka@ee.mcgill.ca).
The digest is a collection of article threads from the internet
newsgroups comp.sys.mac.programmer.help, csmp.tools, csmp.misc and
csmp.games. It is designed for people who read news semi-regularly and
want an archive of the discussions. If you don't know what a
newsgroup is, you probably don't have access to it. Ask your systems
administrator(s) for details. If you don't have access to news, you
may still be able to post messages to the group by using a mail server
like anon.penet.fi (mail help@anon.penet.fi for more information).
Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject. The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
ee.mcgill.ca). Article threads are not added to the digest until the last
article added to the thread is at least two weeks old (this is to ensure that
the thread is dead before adding it to the digest). Article threads that
consist of only one message are generally not included in the digest.
The digests can be obtained by email, ftp or through the World Wide Web.
If you want to receive the digest by mail, send email to
majordomo@ee.mcgill.ca with no subject and one of the following commands
as body:
help Sends you a summary of commands
subscribe csmp Adds you to the mailing list
unsubscribe csmp Removes you from the list
Once you have subscribed, you will automatically receive each new
issue as it is created.
Back issues are available by ftp from Info-Mac mirror sites in the
per/csmp subdirectory, e.g.
ftp://sumex-aim.stanford.edu/info-mac/per/csmp/
The contents of all back issues can be searched by accessing the
following URL, courtesy of Andrew Barry (ajbarry@ozemail.com.au):
http://marvin.stattech.com.au/search.html
They can also be searched through the following URLs, thanks to
Tim Tuck (Tim.Tuck@sensei.com.au):
http://wais.sensei.com.au/searchform.html
wais://wais.sensei.com.au:210/csmp?
-------------------------------------------------------
From jamesstep@aol.com (JamesStep)
Subject: "HyperCard Heaven" update
Date: 18 Sep 1996 16:31:41 -0400
Organization: America Online, Inc. (1-800-827-6364)
Just wanted to mention a few new things at my HyperCard Heaven web site:
* An interview with Richard Wanderman. Richard has used HyperCard since he
received a pre-release version called "WildCard" in 1987. He has led
hundreds of HyperCard workshops and has led the HyperCard in Education
panel at Macworld Expos.
Richard talks about the early days of HyperCard, his work as a
HyperCard developer, ways that HyperCard is useful to people with learning
disabilities, methods of adapting stacks for disabled persons who can't
use a mouse, and much more. I think you'll enjoy it.
* Recently I started a new feature called "Cool Stack of the Week." Each
week I describe a great HC stack, show a screen shot, and make it
available for download.
* In this month's contest, you might win a prize by suggesting a "cool
stack" that we might want to feature.
* An article about HyperCard at the Boston Macworld Expo. It has info
about Heizer's LiveCard (which lets you serve stacks over the web) and
comments from Param Singh of Apple's HyperCard team about the next version
of HyperCard (3.0), which will be playable cross-platform by any
application that can play QuickTime movies.
I've also included photos taken at the expo of Ro Nagey and Brian
Molyneax (Heizer Software), and Param Singh and Scott Bongiorno (Apple's
HyperCard Team).
Thanks,
Jim Stephenson
HyperCard Heaven
http://members.aol.com/hcheaven/
---------------------------
From JZipursky@creo.bc.ca (Jay Zipursky)
Subject: CodeManager 1.0.6 Update doesn't work! Help!
Date: Mon, 16 Sep 1996 09:55:06 -0700
Organization: Creo Products Inc.
Howdy,
Hopefully MWRon can help me out with this... Metrowerks technical support
seems to be on vacation.
I ftped the CM 1.0.6 update and unstuffed it. What I get is something
with an eApp file type (creator CSOm) that I can't do anything with. I
have no updater applications that recognize this file and messing about
with the file type didn't have any useful effect.
Has anyone had any success with this update?
Thanks,
Jay
--
Jay Zipursky | jzipursky@creo.bc.ca
Software Engineer | Voice (604) 451-2700
Creo Products Inc. | Fax (604) 437-9891
Burnaby, B.C., Canada | <Insert Cool Quote Here>
+++++++++++++++++++++++++++
From MWRon@metrowerks.com (MW Ron)
Date: Tue, 17 Sep 1996 21:04:51 -0400
Organization: Metrowerks
In article <JZipursky-1609960955060001@eliza.creo.bc.ca>,
JZipursky@creo.bc.ca (Jay Zipursky) wrote:
>Howdy,
>
>Hopefully MWRon can help me out with this... Metrowerks technical support
>seems to be on vacation.
I don't know myself, but I'll get an answer.
Please let me apologize for Tech Support with CW10 out all the old bugs
and example codes as well as creating project stationery and other minor
tasks fell on the Tech support team. They are now playing catch up and
not back to the current level or replying that they usually are at.
Ron
--
METROWERKS Ron Liechty
"Software at Work" MWRon@metrowerks.com
http://www.metrowerks.com/about/people/rogues.html#mwron
+++++++++++++++++++++++++++
From MWRon@metrowerks.com (MW Ron)
Date: Wed, 18 Sep 1996 12:15:24 -0400
Organization: Metrowerks
In article <JZipursky-1609960955060001@eliza.creo.bc.ca>,
JZipursky@creo.bc.ca (Jay Zipursky) wrote:
>Howdy,
>
>Hopefully MWRon can help me out with this... Metrowerks technical support
>seems to be on vacation.
>
>I ftped the CM 1.0.6 update and unstuffed it. What I get is something
>with an eApp file type (creator CSOm) that I can't do anything with. I
>have no updater applications that recognize this file and messing about
>with the file type didn't have any useful effect.
I downloaded the file with netscape and did not have any problems. I was
told that there may be a problem with Eudora Lite and this file. It had
been reported as being corrupted before. So, either they fixed it and I
got the fixed version or it only affects some downloading software.
You should also be able to download it from our ftp site
ftp.metrowerks.com//pub/ you might want to try that.
Ron
--
METROWERKS Ron Liechty
"Software at Work" MWRon@metrowerks.com
http://www.metrowerks.com/about/people/rogues.html#mwron
---------------------------
From lga@sma.ch (Laurent Gasser)
Subject: Disk space efficiency (Was: MacOS 8: What is-was the critical path?)
Date: 13 Sep 1996 15:29:33 GMT
Organization: Swiss Meterological Institute
John Moreno <phenix@interpath.com> wrote:
> plus a new file system so that a 30 byte file
> doesn't take up 8k.
Until recently, I didn't bother with it. But I bought a larger disk
and my efficiency at using disk space (the ratio used bytes on
actually reserved bytes) suddenly decreased.
Aren't partitions a cure to the problem? I would like to know before
to make a huge backup and disk reformat with partitions.
P.S. Has anyone written a small tool measuring this efficiency (used
disk memory on reserved one)?
--
Laurent Gasser (lga@sma.ch)
Computers do not solve problems, they execute solutions.
+++++++++++++++++++++++++++
From geordie@chapman.com (Geordie Korper)
Date: Fri, 13 Sep 1996 11:43:36 -0500
Organization: Chapman and Cutler
In article <51buktINNrj@maz4.sma.ch>, lga@sma.ch wrote:
:John Moreno <phenix@interpath.com> wrote:
:> plus a new file system so that a 30 byte file
:> doesn't take up 8k.
:
:Until recently, I didn't bother with it. But I bought a larger disk
:and my efficiency at using disk space (the ratio used bytes on
:actually reserved bytes) suddenly decreased.
:
:Aren't partitions a cure to the problem? I would like to know before
:to make a huge backup and disk reformat with partitions.
:
:P.S. Has anyone written a small tool measuring this efficiency (used
:disk memory on reserved one)?
:--
:Laurent Gasser (lga@sma.ch)
:Computers do not solve problems, they execute solutions.
You can tell how much you are losing because of large allocation blocks by
putting everthing in your HD in one folder in doing a get info on it and
compare the 2 numbers.
--
Geordie Korper geordie@chapman.com
*********************************************************************
* The text above should in no way be construed to represent the *
* opinions of my employer, even if specifically stated to do so. *
*********************************************************************
+++++++++++++++++++++++++++
From jonpugh@netcom.com (Jon Pugh)
Date: Sat, 14 Sep 1996 06:57:01 GMT
Organization: Apple Computer
In article <51buktINNrj@maz4.sma.ch>, lga@sma.ch wrote:
>P.S. Has anyone written a small tool measuring this efficiency (used
>disk memory on reserved one)?
My ancient application ShowSizes does this. It's on my web page, but it's
in need of work but all the problems are cosmetic only. It displays
folders with bar charts on them which correspond to the amount of space
they take up. You can do percentages of parent folders, of space wasted,
of space wasted in the folder, etc.
I've been meaning to update it, but it's written in THINK Pascal with the
TCL. I haven't even been able to build the damn thing for several years.
I'll be looking at the TCL->CodeWorrior port one of these days if I can
find my original TCL disks.
Jon
--
What are YOU doing to oppose the Microsoft juggernaut?
http://www.infoworkshop.com/~jonpugh/
+++++++++++++++++++++++++++
From danash@students.wisc.edu (Daniel Nash)
Date: Sat, 14 Sep 1996 00:57:22 -0600
Organization: University of Wisconsin, Madison
In article <geordie-ya023080001309961143360001@kyrie>, geordie@chapman.com
(Geordie Korper) wrote:
: You can tell how much you are losing because of large allocation blocks by
: putting everthing in your HD in one folder in doing a get info on it and
: compare the 2 numbers.
: Geordie Korper geordie@chapman.com
You can also find the minimum block size by dividing your total partition
size by 65536 (64kB). For instance, 1GB / 64kB = 16kB, so every file on a
1 gig partition must be a multiple of 16kB in size. So the person who,
earlier in this thread, said their files were 64kB must have a 4 gig HD by
my calculations.
- Daniel Nash
+++++++++++++++++++++++++++
From erkyrath@netcom.com (Andrew Plotkin)
Date: Sat, 14 Sep 1996 17:22:46 GMT
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Laurent Gasser (lga@sma.ch) wrote:
> John Moreno <phenix@interpath.com> wrote:
> > plus a new file system so that a 30 byte file
> > doesn't take up 8k.
> Until recently, I didn't bother with it. But I bought a larger disk
> and my efficiency at using disk space (the ratio used bytes on
> actually reserved bytes) suddenly decreased.
> Aren't partitions a cure to the problem? I would like to know before
> to make a huge backup and disk reformat with partitions.
Yes, partitions are the (well, a) cure. The minimum file size is the
partition size divided by 65536.
--Z
--
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the
borogoves..."
+++++++++++++++++++++++++++
From lars.farm@ite.mh.se (Lars Farm)
Date: Sun, 15 Sep 1996 18:47:57 +0200
Organization: pv
Daniel Nash <danash@students.wisc.edu> wrote:
> You can also find the minimum block size by dividing your total partition
> size by 65536 (64kB). For instance, 1GB / 64kB = 16kB, so every file on a
> 1 gig partition must be a multiple of 16kB in size. So the person who,
> earlier in this thread, said their files were 64kB must have a 4 gig HD by
> my calculations.
2G. Source code is TEXT files that also contain a tiny resource (76
bytes). Therefor a small text file will have a few hundred bytes of text
stored in one 32K block + 76 bytes resource stored in an additional 32K
block = 64K/tiny file. This is ridiculous.
The suggestion to use partitions is no cure for the problem unless you
completely fill the partition, which is unrealistic. The free space of
an artificial partition is also unusable waste.
--
Lars Farm, lars.farm@ite.mh.se
+++++++++++++++++++++++++++
From jumplong@aol.com (Jump Long)
Date: 15 Sep 1996 13:10:11 -0400
Organization: America Online, Inc. (1-800-827-6364)
Laurent Gasser wrote:
>Aren't partitions a cure to the problem? I would like to know
>before to make a huge backup and disk reformat with partitions.
Partitions are currently the cure to the problem. For the size of the
partitions, you'll probably get lots of different answers, but I've found
that 250Mb partitions are good for most users.
>P.S. Has anyone written a small tool measuring this efficiency
>(used disk memory on reserved one)?
As a matter of fact, I did. The program simply indexes through a volume's
files and grabs the logical and physical size of each file's data and
resource forks. I rounded the logical sizes up to the nearest 512-byte
boundary since hard disk media uses 512-byte blocks (physical sizes are
already on 512-byte boundaries). Then, I subtracted the total of the
(rounded up) logical sizes from the total of the physical sizes to come up
with how much space is actually wasted by your files on your disk.
The IterateDirectory function in MoreFiles
<ftp://members.aol.com/JumpLong/MoreFiles_1.4.3.sea.hqx> makes writing
something like that very simple. The filter procedure you pass to
IterateDirectory only needs to do the rounding up and counting -
IterateDirectory will walk through your volume's files and directories.
- Jim Luther
+++++++++++++++++++++++++++
From lars.farm@ite.mh.se (Lars Farm)
Date: Wed, 18 Sep 1996 16:38:35 +0200
Organization: pv
Andrew Plotkin <erkyrath@netcom.com> wrote:
> Lars Farm (lars.farm@ite.mh.se) wrote:
> > The suggestion to use partitions is no cure for the problem unless you
> > completely fill the partition, which is unrealistic.
>
> Well, the problem isn't a *problem* unless you completely fill your hard
> drive. :-) (Wasted space isn't a problem if you still have some left,
> right?)
How large do you suggest that I make the partition that should hold
Codewarrior? Note, I do NOT want to repartition my HD three times per
year. There has to be (currently wasted) room for the next upgrade, and
the next... Neither do I accept repartitioning when MW issues
net-updates. Do you think that I should use a separate partition for Sym
C++ too? What about MPW? With or without the examples? How about when I
halfway between updates decide to install more docs? Or maybe I should
split Codewarrior on several partitions? How many? How convenient!
With partitions there will be a lot of waste due to unfilled partitions.
Consequently partitions is no cure. Without partitions there will be a
lot of waste due to *ridiculous* blocksizes. With small blocks all free
space from all folders, rather than partitions, would be shared and
available everywhere and you could use folders the way it was intended.
The only ones that benefit from the the current situation are Quantum,
Seagate and those. They are happy to accept your money with or without
partitions in return for unusable space, wasted by a silly filesystem.
--
Lars Farm, lars.farm@ite.mh.se
+++++++++++++++++++++++++++
From erkyrath@netcom.com (Andrew Plotkin)
Date: Wed, 18 Sep 1996 05:09:47 GMT
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Lars Farm (lars.farm@ite.mh.se) wrote:
> The suggestion to use partitions is no cure for the problem unless you
> completely fill the partition, which is unrealistic.
Well, the problem isn't a *problem* unless you completely fill your hard
drive. :-) (Wasted space isn't a problem if you still have some left,
right?)
The more intuitive statement of the problem is that each partition is
limited to 65536 files. (This isn't exactly equivalent to the
minimum-block-size constraint, but I believe it is the actual system
limitation that caused the minimum-block-size constraint to be
implemented.) Partitioning obviously does help this.
> The free space of
> an artificial partition is also unusable waste.
Not if you've already divided up your hard drive into several
large folders, of which you can move a subset to the new partition.
Keeping track of this is a pain in the butt, and we shouldn't have to do
it. Absolutely. Unfortunately, releasing a new file system is a pain in
its own set of butts.
--Z
--
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the
borogoves..."
---------------------------
From kab128@psuvm.psu.edu (Kyle Bernheim)
Subject: HELP: Importing undelimited data into FoxPro or FMpro v3
Date: Wed, 18 Sep 96 01:09:35 GMT
Organization: Penn State University, Center for Academic Computing
Say, what would be the easiest way to import raw data (no spaces, commas or
whatnot between fields, just a line break between records) into various fields
in either a FoxPro or Filemaker Pro database (if one is easier than the other,
please advise)
Thanks in advance!
-K
kab128@psuvm.psu.edu
+++++++++++++++++++++++++++
From azzy@io.com (Reuben King)
Date: Wed, 18 Sep 1996 15:10:41 -0500
Organization: None
I'm sorry. In my previous post I said "delimitation between records". I
meant "delimitation between fields". duh.
--
Reuben King <azzy@io.com>
<http://www.compdata.com/~reuben> \\||//
(0 o)
=====================================ooO=(^/)=Ooo====
"Of all tyrannies, a tyranny sincerely exercised for
the good of its victims may be the most oppressive."
-- C.S. Lewis
!!! HARRY BROWNE FOR PRESIDENT '96 !!!
!!! http://www.HarryBrowne96.org/ !!!
+++++++++++++++++++++++++++
From azzy@io.com (Reuben King)
Date: Wed, 18 Sep 1996 15:10:17 -0500
Organization: None
In article <51ni8s$1jac@r02n01.cac.psu.edu>, kab128@psuvm.psu.edu (Kyle
Bernheim) wrote:
> Say, what would be the easiest way to import raw data (no spaces, commas or
> whatnot between fields, just a line break between records) into various
fields
> in either a FoxPro or Filemaker Pro database (if one is easier than the
other,
> please advise)
> Thanks in advance!
> -K
> kab128@psuvm.psu.edu
There's got to be SOME kind of delimitation between records.. Perhaps a
fixed record width? I ran into this once and ended up importing the data
into Fox (because it could do it) and then exporting as Tab-Delimited and
the importing that into Filemaker. I'm sure you could figure out a better
solution. MacPerl would be great at this, if you're the programming type.
--
Reuben King <azzy@io.com>
<http://www.compdata.com/~reuben> \\||//
(0 o)
=====================================ooO=(^/)=Ooo====
"Of all tyrannies, a tyranny sincerely exercised for
the good of its victims may be the most oppressive."
-- C.S. Lewis
!!! HARRY BROWNE FOR PRESIDENT '96 !!!
!!! http://www.HarryBrowne96.org/ !!!
+++++++++++++++++++++++++++
From kab128@psuvm.psu.edu (Kyle Bernheim)
Date: Wed, 18 Sep 96 21:35:05 GMT
Organization: Penn State University, Center for Academic Computing
In article <relayer-1809960823400001@frank.ewg.org>, relayer@ewg.org (Frank Schima) wrote:
>If you mean a fixed length file, then just make a new database in FoxPro
>with the fields and the correct field lengths and append the text as a SDF
>file.
>
SDF, ah! okay, thanks!
-K
---------------------------
From tracy@linksware.com (Tracy Valleau)
Subject: Help convince client to do Mac games
Date: Mon, 16 Sep 1996 11:33:40 -0700
Organization: Software Consulting
Greetings all
I know I've seen the articles and other independent support that shows why
it makes good business sense to write Mac games, but now I've got a huge
client who won't take my word for it.
Could someone please point me to third-party articles (Develop? MacWeek?)
that will support my position that they should develop for the Mac?
TIA
Tracy Valleau
LinksWare
tracy@linksware.com
--
Tracy Valleau, ACM, online since 1978
The original and easiest multimedia program for Macs is at http://www.linksware.com, and you can test it for free.
+++++++++++++++++++++++++++
From gchapman@irus.rri.uwo.ca (Greg Chapman)
Date: Tue, 17 Sep 1996 12:25:15 -0500
Organization: Robarts Research Institute
In article <tracy-1609961133400001@isdn-8.mtry.mbay.net>,
tracy@linksware.com (Tracy Valleau) wrote:
> Could someone please point me to third-party articles (Develop? MacWeek?)
> that will support my position that they should develop for the Mac?
You may be best starting at the EvangaList, which is at
http://www.evangelist.macaddict.com/
Good luck.
--
Greg Chapman
Mac Developer - Robarts Research Institute
Advanced Imaging Research Group (AIRG)
- -
"You! Out of the gene pool!"
+++++++++++++++++++++++++++
From tblanch@rmii.com (Todd Blanchard)
Date: Wed, 18 Sep 1996 09:02:33 -0600
Organization: Rocky Mountain Internet Inc.
Send them here:
http://www.bungie.com/soapbox496.html
A nice rant from Eric Klein of Bungie (makers of Marathon, Abuse...) about
why they develop for the Mac market.
Todd Blanchard
In article <tracy-1609961133400001@isdn-8.mtry.mbay.net>,
tracy@linksware.com (Tracy Valleau) wrote:
> Greetings all
>
> I know I've seen the articles and other independent support that shows why
> it makes good business sense to write Mac games, but now I've got a huge
> client who won't take my word for it.
>
> Could someone please point me to third-party articles (Develop? MacWeek?)
> that will support my position that they should develop for the Mac?
>
> TIA
>
> Tracy Valleau
> LinksWare
> tracy@linksware.com
>
> --
> Tracy Valleau, ACM, online since 1978
> The original and easiest multimedia program for Macs is at
http://www.linksware.com, and you can test it for free.
--
Todd Blanchard
"Never understimate the power of stupid people in large groups!"
+++++++++++++++++++++++++++
From nctrost@pobox.com (Nate Trost)
Date: 18 Sep 1996 14:58:09 GMT
Organization: InterAccess Co
In article <tracy-1609961133400001@isdn-8.mtry.mbay.net>,
tracy@linksware.com (Tracy Valleau) wrote:
> I know I've seen the articles and other independent support that shows why
> it makes good business sense to write Mac games, but now I've got a huge
> client who won't take my word for it.
>
> Could someone please point me to third-party articles (Develop? MacWeek?)
> that will support my position that they should develop for the Mac?
Articles are nice, but you're probably in a much better position if you
can crunch good numbers specific to your project(s). Statistics from Mac
based publications (or Apple :-) probably won't sway a PC heavy
publisher. If you have a solid track record for delivering on time and on
budget (meeting the old milestones, as it were), and can make a solid case
for why the game will make the publisher Money (enough to compensate for
the risk and internal chaos of doing a Mac title)....you probably don't
need articles...until you're trying to convince the marketing department
to actually SELL the game, anyway.
If the company had a bad Mac gaming experience in 1988 or the executive
producer just hates multi-colored logos...<shrug> There's always Bungie.
--
Nate Trost
nctrost@pobox.com
+++++++++++++++++++++++++++
From odueck@pobox.com (Oliver Dueck)
Date: 18 Sep 1996 00:56:34 GMT
Organization: Awesome Internet Services
In article <tracy-1609961133400001@isdn-8.mtry.mbay.net>,
tracy@linksware.com (Tracy Valleau) wrote:
> Could someone please point me to third-party articles (Develop? MacWeek?)
> that will support my position that they should develop for the Mac?
Check out the January '96 issue of MacUser - they have a feature article
about all the new Mac gaming technologies.
Regards,
Oliver Dueck
odueck@pobox.com
- ----------------------------
Awesome Internet Services
Providing Quality Web Site
Design and Maintenance
As Well As Marketing
http://www.awesome.holowww.com
- ----------------------------
---------------------------
From David Young <dhy@unh.edu>
Subject: Help w- the Slot Mgr
Date: Sat, 14 Sep 1996 15:18:59 -0400
Organization: University of New Hampshire - Durham, NH
I am trying to send a raw Ethernet packet - not through AppleTalk,
MacTCP or OT. I am following the example outlined in Chapter 11 of
Inside Mac: Networking, (or at
http://devworld.apple.com/dev/techsupport/insidemac/Networking/Networkin
g-262.html).
The problem is that the SGetTypeSRsrc() function, which should point me
to the Ethernet card driver, keeps returning smNoMoresRsrcs, even though
there definately *is* an Ethernet card in the Mac. What am I doing
wrong?
--
David
+++++++++++++++++++++++++++
From David Young <dhy@unh.edu>
Date: Wed, 18 Sep 1996 22:49:54 -0400
Organization: University of New Hampshire - Durham, NH
David Young wrote:
>
> I am trying to send a raw Ethernet packet - not through AppleTalk,
> MacTCP or OT. I am following the example outlined in Chapter 11 of
> Inside Mac: Networking, (or at http://devworld.apple.com/dev/
> techsupport/insidemac/Networking/Networkin g-262.html).
>
> The problem is that the SGetTypeSRsrc() function, which should point
> me to the Ethernet card driver, keeps returning smNoMoresRsrcs, even
> though there definately *is* an Ethernet card in the Mac. What am I
> doing wrong?
>
Yup, I'm replying to my own post - pathetic, I know... someone suggested
that if I provide my source perhaps it would help garner a repsonse.I
was initially reluctant to do this as the source is FutureBASIC with
inline assembly. The assembly has been looked at and given a thumbs up,
plus it does return a valid result (smNoMoreRsrcs)...
LOCAL FN SGetTypeSRsrc(SpBlockPtr&)
DIM result%
` MOVE.L ^SpBlockPtr&, a0
` MOVE.W #$000C,D0 ;(selector for SGetTypeSRsrc)
` DC.W $A06E ;(trap # for all SlotManager routines)
` MOVE.W d0, ^result%
END FN = result%
'-----------------------------
CLEAR LOCAL
LOCAL FN FindEnet%
DIM osErr%, enetRefNum%
DIM SpBlock.56
DEF BLOCKFILL (@SpBlock,56,0) '{zero out the block}
'
SpBlock.spParamData = 1
SpBlock.spCategory = _catNetwork
SpBlock.spCType = _typeEthernet
SpBlock.spDrvrSW = 0
SpBlock.spDrvrHW = 0
SpBlock.spTBMask = 3 '{match only Category and CType fields}
SpBlock.spSlot = 0 '{start search from here}
SpBlock.spID = 0 '{start search from here}
SpBlock.spExtDev = 0
'
osErr% = FN SGetTypeSRsrc(@SpBlock)
'
LONG IF osErr% = _noErr '{found an sResource match; }
PRINT "sResource was found!"
XELSE
LONG IF osErr% = _smNoMoresRsrcs
PRINT "SGetTypeSRsrc osErr% = _smNoMoresRsrcs"
XELSE
PRINT "SGetTypeSRsrc osErr% = "; osErr%
END IF
END IF
END FN = osErr%
'------------- Main --------------
DIM osErr%
WINDOW OFF
WINDOW 1, "Raw .ENET Test", (50,50)-(600,400)
TEXT _monaco, 9
PRINT " *******************************************************"
PRINT
osErr% = FN FindEnet%
END
'-----------------------------------
---------------------------
From zberger@ldl.net (Psychedelic Harry)
Subject: Looking for ASM-370 & COBOL for PPC
Date: Sun, 15 Sep 1996 21:30:31 -0400
Organization: PowerPCs-R-Us
Has anyone got a good System/370[90] asmh emulator for MacOC or even a
(shudder!) COBOL package? I'm looking for something to ease my stress
when I take work home, but running these things in Softwindoze is not
it.....
Thanks in advance for any leads, email please, I don't surf too often......
--
-=Psychedelic Harry=-
It's not enough
to have the right motive
one must do the right thing
or his motive means nothing
+++++++++++++++++++++++++++
From sw@nan.co.uk (Sak Wathanasin)
Date: Wed, 18 Sep 1996 10:23:56 GMT
Organization: Network Analysis Ltd
In article <zberger-1509962130320001@pm26.ldl.net>, zberger@ldl.net
(Psychedelic Harry) wrote:
> Has anyone got a good System/370[90] asmh emulator for MacOC or even a
> (shudder!) COBOL package? I'm looking for something to ease my stress
> when I take work home, but running these things in Softwindoze is not
> it.....
Micro Focus, Inc. was rumoured to have a COBOL for the Mac. Try
Micro Focus Inc, Palo Alto, CA
Phone: 415-843-7245
Fax: 415-843-7192
These numbers are a couple of years old, and may have changed.
sales@mfltd.co.uk or info@mfltd.co.uk might work.
--
Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK
Internet: sw@nan.co.uk
uucp: ...!britain.eu.net!nan!sw
Phone: (+44) 1203 419996 Fax: (+44) 1203 690690
---------------------------
From Dave Schneider <dschneid@auc.trw.com>
Subject: Mac & Intel Dev. System
Date: Mon, 16 Sep 1996 20:05:05 +0000
Organization: TRW Denver Operations
Can anyone recommend a good cross platform development environment for
developing applications for both the Mac and Intel (windows 3.1, 95, and
NT).
Thanks for any help.
+++++++++++++++++++++++++++
From suresh@flowbee.interaccess.com (Suresh Kumar)
Date: 17 Sep 1996 12:53:07 -0500
Organization: A poorly-installed InterNetNews site
In article <323DB2EB.509@auc.trw.com>,
Dave Schneider <dschneid@auc.trw.com> wrote:
>Can anyone recommend a good cross platform development environment for
>developing applications for both the Mac and Intel (windows 3.1, 95, and
>NT).
>
>Thanks for any help.
The following are some of the cross-platform application
frameworks mentioned in Apple's Developer's site.
a) Galaxy by Visix, Inc. (703-758-2707)
b) Open Interface by Neuron Data, Inc. (800-876-4900)
c) XVT++ by XVT Software,Inc (303-443-4223)
d) OM++ by ICE, Inc. (415-931-9400)
- Suresh Kumar, Parallel Software Group, Inc., Naperville, IL
+++++++++++++++++++++++++++
From rcb@ipass.net (Randy Buckland)
Date: 18 Sep 1996 18:13:28 GMT
Organization: IPass.net
suresh@flowbee.interaccess.com (Suresh Kumar) writes:
>In article <323DB2EB.509@auc.trw.com>,
>Dave Schneider <dschneid@auc.trw.com> wrote:
>>Can anyone recommend a good cross platform development environment for
>>developing applications for both the Mac and Intel (windows 3.1, 95, and
>>NT).
>>
>>Thanks for any help.
>The following are some of the cross-platform application
>frameworks mentioned in Apple's Developer's site.
>a) Galaxy by Visix, Inc. (703-758-2707)
>b) Open Interface by Neuron Data, Inc. (800-876-4900)
>c) XVT++ by XVT Software,Inc (303-443-4223)
>d) OM++ by ICE, Inc. (415-931-9400)
>- Suresh Kumar, Parallel Software Group, Inc., Naperville, IL
Depends on where the "primary" development is done, Mac or PC?
I like the VC++ package for windows 95 with the macintosh cross-platform
add-on.
--
Randy Buckland "It's difficult to work
Independent computer consultant in a group when you're
rcb@ipass.net omnipotent" -- Q
---------------------------
From YungKC@perkin-elmer.com
Subject: Mac Programmer wanted in BA, CA
Date: 18 Sep 1996 17:13:30 -0700
Organization: Zippo
A Fortune 500 instrumentation company is looking for an entry/intermediate
Mac programmer with some knowledge of the following:
Metrowerk C/C++
Instrumentation control via RS-232
Science Background
MacAPP a +
IEEE programming a +
Windows NT programming a+
Interested parties please send resume and salary requirement to
YungKC@perkin-elmer.com
---------------------------
From uzs90z@uni-bonn.de (Michael Schuerig)
Subject: OpenDoc & Clipping files
Date: Fri, 13 Sep 1996 23:50:04 +0200
Organization: RHRZ - University of Bonn (Germany)
On csm.system there is an ongoing discussion about stickies and Finder
"Clipping" files. Apparently there is a program called Finder Note(?) to
edit text clippings, but I think this is only a half hearted solution.
I was wondering whether it was possible to have clippings automatically
opened by suitable OpenDoc parts.
Michael
- ---
Michael Schuerig
mailto:uzs90z@uni-bonn.de
http://www.rhrz.uni-bonn.de/~uzs90z/
+++++++++++++++++++++++++++
From uzs90z@uni-bonn.de (Michael Schuerig)
Date: Wed, 18 Sep 1996 02:37:53 +0200
Organization: RHRZ - University of Bonn (Germany)
Geoffrey Clapp <geoff.clapp@apple.com> wrote:
> In article <19960913235004462065@rhrz-ts2-p4.rhrz.uni-bonn.de>,
> uzs90z@uni-bonn.de (Michael Schuerig) wrote:
>
> >I was wondering whether it was possible to have clippings automatically
> >opened by suitable OpenDoc parts.
>
> Short Answer: Yes.
>
> Slightly Longer Answer: Yes, for example...
>
> If you drag a clipping into an OpenDoc document, it will bind to the
> correct part editor. For example, take a picture clipping and drag it into
> ODFDraw. If you have the ODF parts installed and no other editors
> selected, it will bind to ODFBitmap (Just replicated that to make sure...
> ;->)
I haven't been precise enough, I gather. I was thinking of
double-clicking clippings to open them in an OpenDoc part. In fact they
wouldn't be special clipping files then, but ordinary documents -- only
created in an as yet non-standard manner.
Michael
- -
Michael Schuerig
mailto:uzs90z@uni-bonn.de
http://www.rhrz.uni-bonn.de/~uzs90z/
+++++++++++++++++++++++++++
From geoff.clapp@apple.com (Geoffrey Clapp)
Date: Tue, 17 Sep 1996 15:50:14 -0700
Organization: Apple Computer, Inc.
In article <19960913235004462065@rhrz-ts2-p4.rhrz.uni-bonn.de>,
uzs90z@uni-bonn.de (Michael Schuerig) wrote:
>I was wondering whether it was possible to have clippings automatically
>opened by suitable OpenDoc parts.
Short Answer: Yes.
Slightly Longer Answer: Yes, for example...
If you drag a clipping into an OpenDoc document, it will bind to the
correct part editor. For example, take a picture clipping and drag it into
ODFDraw. If you have the ODF parts installed and no other editors
selected, it will bind to ODFBitmap (Just replicated that to make sure...
;->)
HTH,
geoffrey
- ------------------------------------------
Geoffrey Clapp Apple Computer, Inc.
OpenDoc Engineering geoff.clapp@apple.com
- ------------------------------------------
+++++++++++++++++++++++++++
From mpinkert@cc.gatech.edu (Mike Pinkerton)
Date: 18 Sep 1996 16:00:06 GMT
Organization: College of Computing, Georgia Tech
Michael Schuerig (uzs90z@uni-bonn.de) wrote:
: I haven't been precise enough, I gather. I was thinking of
: double-clicking clippings to open them in an OpenDoc part. In fact they
: wouldn't be special clipping files then, but ordinary documents -- only
: created in an as yet non-standard manner.
According to the Apple OpenDoc UI Guidelines, Clipping files are obsoleted
by OpenDoc. A "clipping" will be created in the same way (drag to desktop)
but it will be an OD document that opens the correct part editor upon a
double-click.
The debate, as far as I can see it, is if an OD document is too
"heavyweight" for a clipping, both in disk space and in time to open.
--
Mike Pinkerton
mpinkert@cc.gatech.edu http://www.cc.gatech.edu/people/home/mpinkert
Cyberdog: On the Internet, no one knows you're an OpenDoc part
---------------------------
From GeoffPrice@aol.com (Geoff Price)
Subject: PICT disassembly -- source? tools?
Date: 10 Sep 1996 23:09:18 GMT
Organization: ABC-CLIO
MPTA admonishes:
> For debugging purposes, picture opcodes are listed in Appendix A at the back
> of Inside Macintosh: Imaging With QuickDraw. Your application generally
should
> not read or write this picture data directly. Instead, your application
should
> use the OpenCPicture (or OpenPicture), ClosePicture, and DrawPicture routines
> to process these opcodes.
Unfortunately, that gives you precious little leeway for editing existing,
relatively complex version 2 pictures.
Our current situation is that we have a lot of graphics that inadvertently
contain a 24-bit bitmap component targeted for an 8-bit palettized
application, and a dearth of CD space. FreeHand, apparently, expands this
bitmap during an assembly phase of graphic preparation if the user's
monitor is set to full color.
So, we need to reduce this object to an indexed graphic and reinsert it
back into its place in the PICT (below layered vector objects such as
lines and text).
There doesn't appear to be anything high-level in QuickDraw to help one
edit pictures in this manner (which unfortunately makes such mucking an
inherently sketchy activity.) Anybody familiar with any tools or source
code to help, or should we just start getting real familiar with the IM
appendices?
Freehand doesn't seem to be cooperative -- can anyone suggest a
vector-savvy graphic program that might be able to edit existing PICTs in
this way?
I'm aware that Resourcerer includes a PICT disassembly tool which I admit
I'm not familiar with... does this allow editing of individual PICT
components (or just viewing)? Can one actually insert graphic objects?
If so, and if it's scriptable, maybe I could cook up some hokey batch
process with it.
Any experience appreciated.
I'm also interested in general wrangling over the OS philosophy here --
why such a "black box" implementation of something as omnipresent as PICTs
from an API perspective? (I do see where this would allow a lot of
behind-the-scenes shenanigans such as the separate encoding of channels in
RGB images and seamless wrapping of other compression methods, etc.)
Thanks,
Geoff Price
Caliban Mindwear http://www.CalibanMW.com
ABC-CLIO New Media
+++++++++++++++++++++++++++
From Doug McKenna <xathenax@netone.com>
Date: Wed, 11 Sep 1996 22:48:19 +0000
Organization: Online Network Enterprises, Inc.
Geoff -
> I'm aware that Resourcerer includes a PICT disassembly tool which I admit
> I'm not familiar with... does this allow editing of individual PICT
> components (or just viewing)?
Yes, editing of opcodes and opcode arguments is supported in the same manner
as any other resource being edited with a template.
>Can one actually insert graphic objects?
Yes, one opcode at a time. You have to really know your opcodes and
pixmap data formats, though.
> If so, and if it's scriptable, maybe I could cook up some hokey batch
> process with it.
It's not scriptable within the Data Editor, which is what you'd be using.
Doug McKenna
Mathemaesthetics, Inc.
Developers of Resorcerer
http://www.mathemaesthetics.com
+++++++++++++++++++++++++++
From carl.gustafson@no.spam.welcome (Carl Gustafson)
Date: Fri, 13 Sep 1996 08:30:59 -0400
Organization: Imaging and Computer Vision Center, Drexel University
In article
<GeoffPrice-1009961617050001@max1-059.snlo.dialup.callamer.com>,
GeoffPrice@aol.com (Geoff Price) wrote:
> I'm aware that Resourcerer includes a PICT disassembly tool which I admit
> I'm not familiar with... does this allow editing of individual PICT
> components (or just viewing)? Can one actually insert graphic objects?
> If so, and if it's scriptable, maybe I could cook up some hokey batch
> process with it.
>
> Any experience appreciated.
I'm afraid that I have no experience to offer, but I do recall a tool
called PICT Detective, or something of the sort. Presumably the graphic
can't be redone on a system with 8-bit color?
I will attempt a comment on the following quote, though:
>
> I'm also interested in general wrangling over the OS philosophy here --
> why such a "black box" implementation of something as omnipresent as PICTs
> from an API perspective? (I do see where this would allow a lot of
> behind-the-scenes shenanigans such as the separate encoding of channels in
> RGB images and seamless wrapping of other compression methods, etc.)
I can think of several reasons for this black box implementation, which
you are free to accept or reject as you wish, they are mostly my opinions.
First, they provide Apple with enough working space to provide backward
compatibility. For example, in the distant past, about 8 years or so ago,
everyone had monotone Macs. No color, no gray scale. A few clever programs
supported 8-color printing on the ImageWriter II. Along came the Mac II,
and along with it, color! The new format for a PICT supported this. It was
also backward compatible, and good old MacWrite versions from way back
would display the color PICTs in color! The software had no way of knowing
about the new format, but since it didn't monkey around with the data, the
OS was able to display the PICT the way it was intended. The same is true
with many other parts of the system software. Apple has stated that if you
follow their rules, new system software won't break your code. Of course,
one schizophrenic tech note pointed out that following the rules kept them
from pushing the envelope, and that not following the rules kept them from
pushing the envelope, but in general, code that hewed to the party line
still runs, after 10+ years.
Second reason for a black-box is related to the above. Compatibility. For
the first 3-4 years of Macintosh, we had a closed box. Existing software
was written for the Apple way of doing things, as there was no other way.
When the Mac II came out, we had an open box. Since existing software
expected certain behavior from hardware, hardware manufacturers made
conforming hardware - no one wants to buy new software just to use a
spiffy new video board, after all. Things have continued on this way ever
since. So, we have true plug and play, they have plug and pray (gratuitous
stab, of course). Consider the cost on developers of supporting all the
different video "standards" for PC software earlier on, and the continued
incompatibility problems even today. Also, recall that your application
typically came on a few disks, and you also got a large collection of
printer drivers to choose from. It was up to you to mix and match. Things
have improved considerably under Windoze, but still are not to the same
standard as the Mac OS - you still need to help the system choose video
drivers, etc. etc.
I won't go so far as to claim that this was the intent of the original Mac
designers, but it *has* worked out this way, and for the better, IMO.
--
Carl Gustafson
carl.gustafson at ece.drexel.edu
(busily trying to avoid spammers)
Imaging and Computer Vision Center
Drexel University, Philadelphia, Penna
- ----------------------------------------------------------
I don't speak for Drexel, and Drexel doesn't listen to me...
+++++++++++++++++++++++++++
From mclow@mailhost2.csusm.edu (Marshall Clow)
Date: Mon, 16 Sep 1996 11:29:38 -0700
Organization: Aladdin Systems
In article <carl.gustafson-1309960830590001@n1-12-178.macip.drexel.edu>,
carl.gustafson@no.spam.welcome (Carl Gustafson) wrote:
>In article
><GeoffPrice-1009961617050001@max1-059.snlo.dialup.callamer.com>,
>GeoffPrice@aol.com (Geoff Price) wrote:
>
>I will attempt a comment on the following quote, though:
>>
>> I'm also interested in general wrangling over the OS philosophy here --
>> why such a "black box" implementation of something as omnipresent as PICTs
>> from an API perspective? (I do see where this would allow a lot of
>> behind-the-scenes shenanigans such as the separate encoding of channels in
>> RGB images and seamless wrapping of other compression methods, etc.)
>
>I can think of several reasons for this black box implementation, which
>you are free to accept or reject as you wish, they are mostly my opinions.
>First, they provide Apple with enough working space to provide backward
>compatibility.
>
[snip]
And for the programmatic manipulations of individual elements of a
picture, you have the quickDraw bottlenecks procs.
Install them in a grafport, and call DrawPicture.
Your bottlenecks will get called for each element in the picture.
--
Marshall Clow
Aladdin Systems
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- Benjamin Franklin
_Historical Review of Pennsylvania_, 1759
+++++++++++++++++++++++++++
From GeoffPrice@aol.com (Geoff Price)
Date: 18 Sep 1996 23:53:36 GMT
Organization: ABC-CLIO
In article <mclow-1609961129380001@burns.idio.com>,
mclow@mailhost2.csusm.edu (Marshall Clow) wrote:
> And for the programmatic manipulations of individual elements of a
> picture, you have the quickDraw bottlenecks procs.
>
> Install them in a grafport, and call DrawPicture.
> Your bottlenecks will get called for each element in the picture.
Right... this is the Mac equivalent of EnumMetaFile I was looking for.
Thanks to those who emailed.
Geoff Price
ABC-CLIO New Media
---------------------------
From Bengt.Wappling@ladok.umu.se (Bengt Wappling)
Subject: Page orientation
Date: Sun, 08 Sep 1996 13:44:36 +0200
Organization: University of Umea
I want to set page orientation to landscape as default.
I thought I had done do, but with LaserWriter 8.4 it is not working
correct. Obviously I did it in an illeagal way. The orientation change,
but the paper size is still portrait.
What is the right way to do it? I hope there is one.
/Bengt
--
University of Umea
Ladok
901 87 Umea Sweden
+++++++++++++++++++++++++++
From davep@best.com (Dave Polaschek)
Date: Wed, 11 Sep 1996 19:16:42 -0700
Organization: Best Internet Communications
In article <Bengt.Wappling-0809961344360001@bengtw.ladok.umu.se>,
Bengt.Wappling@ladok.umu.se (Bengt Wappling) wrote:
> I want to set page orientation to landscape as default.
>
> I thought I had done do, but with LaserWriter 8.4 it is not working
> correct. Obviously I did it in an illeagal way. The orientation change,
> but the paper size is still portrait.
>
> What is the right way to do it? I hope there is one.
The correct way is to get the user to select a landscape page orientation
in the page setup dialog and then save that print record. You can then
use it with other documents. Attempting to set a bit in the print record
will fail because different drivers use different fields for the
orientation. Setting page sizes, etc directly in the print record is
also not supported. You need to get a valid print record for the driver
you're using from the page setup dialog.
-DaveP
--
Dave Polaschek home:davep@best.com work:dpolasch@apple.com
+++++++++++++++++++++++++++
From Bill McElmury <bill@jmcinc.com>
Date: Thu, 12 Sep 1996 08:59:40 -0600
Organization: JMC Inc
Dave Polaschek wrote:
> Attempting to set a bit in the print record
> will fail because different drivers use different fields for the
> orientation. Setting page sizes, etc directly in the print record is
> also not supported. You need to get a valid print record for the driver
> you're using from the page setup dialog.
> --
> Dave Polaschek home:davep@best.com work:dpolasch@apple.com
I need to print custom size forms from my application. The page setup dialog
doesn't have a 3.5" tall form size. What options do I have (other than tweaking
the print record directly)?
How do other people accomplish this?
Thanks.
__________________________________________________
Bill McElmury Bill :612-345-6218
JMC Inc John :800-524-8182
PO Box 328 fax :612-345-2215
Lake City, MN 55041
+++++++++++++++++++++++++++
From davep@best.com (Dave Polaschek)
Date: Thu, 12 Sep 1996 18:46:42 -0700
Organization: Best Internet Communications
In article <3238255C.1029@jmcinc.com>, bill@jmcinc.com wrote:
> I need to print custom size forms from my application. The page setup dialog
> doesn't have a 3.5" tall form size. What options do I have (other than
tweaking
> the print record directly)?
> How do other people accomplish this?
> Thanks.
That's going to depend on the driver. If you're using LaserWriter 8, you
can add your form size to the PPD file for the printer. If you're using
other drivers, the driver may not even support that page size. There are
a number of printers that only handle letter, a4 and legal paper, and
that's it.
The other option is that you can print to letter paper, but only image
3.5" worth of stuff. It'll be wasteful, but at least it'll work.
-DaveP
--
Dave Polaschek home:davep@best.com work:dpolasch@apple.com
+++++++++++++++++++++++++++
From Colin Griffiths <grifftax@magi.com>
Date: 18 Sep 1996 17:28:02 GMT
Organization: iSTAR Internet Incorporated
Bill McElmury wrote:
> I need to print custom size forms from my application. The page setup dialog
> doesn't have a 3.5" tall form size. What options do I have (other than tweaking
> the print record directly)?
> How do other people accomplish this?
Bill:
I have done this, once, some time ago now. I too, had a 3.5" deep
form that I needed to print on. What you can do is modify the PREC
resources within a copy of your printer driver. To do this you need a
copy of ResEdit or similar resource editor:
1. Create a PREC, 4 resource for your custom settings to be used in
your printer's Page Setup dialogue.
2. Modify some of the other PREC resources (sorry, I just do not
recall which ones) to reflect the size of your stationery. You should
be able to experiment with these resouces till you get it right...
Once done, you should be able to choose the stationery in the PAge
Setup dialogue.
---------------------------
From David Scott <dscott@west.net>
Subject: Passing a pointer to a handle
Date: Tue, 17 Sep 1996 18:12:10 +0000
Organization: White Crest Software
I am trying to pass a pointer to a Handle but I cannot shake the
following error:
Error : cannot convert
'char ***' to
'char **'
Non-GUI.c line 57 MyFunction(&newInfoHandle);
Handle newInfoHandle;
.
.
newInfoHandle = NewHandleClear( sizeof(MyStruct));
.
.
MyFunction(&newInfoHandle);
void MyFunction(Handle *handleAdress)
{
}
Thank you!
--
David Scott
Santa Barbara
+++++++++++++++++++++++++++
From dsample@synapse.net (Don Sample)
Date: Wed, 18 Sep 1996 13:24:03 -0400
Organization: DASoftware
In article <323EE9FA.1D5C@west.net>, dscott@west.net wrote:
>I am trying to pass a pointer to a Handle but I cannot shake the
>following error:
>
>
>Error : cannot convert
>'char ***' to
>'char **'
>Non-GUI.c line 57 MyFunction(&newInfoHandle);
>
>
>Handle newInfoHandle;
>.
>.
>newInfoHandle = NewHandleClear( sizeof(MyStruct));
>.
>.
>MyFunction(&newInfoHandle);
>
>
>
>void MyFunction(Handle *handleAdress)
>{
>}
>
>
>Thank you!
>
>--
>
>David Scott
>Santa Barbara
It looks to me like you have 'MyFunction' prototyped as:
void MyFunction(Handle handleAddress);
instead of:
void MyFunction(Handle *handleAddress);
--
Don Sample |
dsample@bix.com | Quando Omni Flunkus Moritati
dsample@synapse.net |
http://www.synapse.net/~dsample/ |
+++++++++++++++++++++++++++
From btcarey@primenet.com (Brent A. Carey)
Date: 18 Sep 1996 10:12:04 -0700
Organization: Primenet Services for the Internet
In article <323EE9FA.1D5C@west.net>, dscott@west.net wrote:
> I am trying to pass a pointer to a Handle but I cannot shake the
> following error:
It should work. I even tried it out, and it worked for me. Strange.
Brent
+++++++++++++++++++++++++++
From David Scott <dscott@west.net>
Date: Wed, 18 Sep 1996 14:16:59 +0000
Organization: White Crest Software
Don Sample wrote:
>
> It looks to me like you have 'MyFunction' prototyped as:
>
> void MyFunction(Handle handleAddress);
>
> instead of:
>
> void MyFunction(Handle *handleAddress);
>
That was it. It's almost funny, the things that have stopped me dead in
my tracks but that I use so often.
Rookies!!??!!
--
David Scott http://www.west.net/~dscott
Santa Barbara
+++++++++++++++++++++++++++
From Bill McElmury <bill@jmcinc.com>
Date: Wed, 18 Sep 1996 16:51:29 -0600
Organization: JMC Inc
David Scott wrote:
>
> I am trying to pass a pointer to a Handle but I cannot shake the
> following error:
>
> Error : cannot convert
> 'char ***' to
> 'char **'
> Non-GUI.c line 57 MyFunction(&newInfoHandle);
>
> Handle newInfoHandle;
> .
> .
> newInfoHandle = NewHandleClear( sizeof(MyStruct));
> .
> .
> MyFunction(&newInfoHandle);
>
> void MyFunction(Handle *handleAdress)
> {
> }
>
> Thank you!
>
> --
>
> David Scott
> Santa Barbara
David,
Are you sure you want/need to pass the address of a Handle? You should
be able to do whatever you want by just passing the Handle itself.
--
__________________________________________________
Bill McElmury Bill :612-345-6218
JMC Inc John :800-524-8182
PO Box 328 fax :612-345-2215
Lake City, MN 55041
---------------------------
From "Jacob Q. Lauritzen" <saxotech@inet.uni-c.dk>
Subject: PowerPlant any good?
Date: Tue, 17 Sep 1996 11:33:28 +0200
Organization: SAXoTECH
Im with a company currently developing in HyperCard/WindowScript. This
combination has been very good allowing fast prototyping.
But we need something new and much more flexible. I am currently reading
the PowerPlant book to see if this application framework will be easy to
work with.
Does anyone have any experience with PowerPlant? It is very
overwhelming, but that's not important if only it becomes fast and easy
once you get to know it.
An alternative were looking into is Tools Plus combined with CodeWarrior
C/C++.
Any oppinions on this? Am I overlooking any other great tools? The most
important thing is that we'll still be able to develop applications as
quickly as we can now.
Oh, and BTW in the future we'd like to develop cross platform, so keep
that in mind : )
+++++++++++++++++++++++++++
From nick@chem.ucla.edu ( nick.c )
Date: Wed, 18 Sep 1996 11:19:43 -0800
Organization: Binary Poet & Molecular Sculptor
jacob_quist_lauritzen@saxotech.dk wrote:
>I am currently reading
>the PowerPlant book to see if this application framework will be easy to
>work with.
>
>Does anyone have any experience with PowerPlant? It is very
>overwhelming, but that's not important if only it becomes fast and easy
>once you get to know it.
PowerPlant is my current favorite framework. It get's easier.
The framework is durable, easily expandible, and has great
support from MW. I also find it (believe it or not :-)
very intuitive. (Might just be my own warped mind :-)
There is newsgroup about PP : <comp.sys.mac.oop.powerplant>
where you can get more details. I also think the book you're
reading (Inside PP aka the PowerPlant Book) is one of the
features of PP. Readable, detailed, and a great ref.
>Any oppinions on this? Am I overlooking any other great tools? The most
>important thing is that we'll still be able to develop applications as
>quickly as we can now.
Also check out TCL (Think Class Library) by Symantec, and
MacApp by Apple. PP is my preference right now, but both of
these are viable alternatives.
-------------------= Nicholas C. DeMello, Ph.D. =--------------------
Internet: nick@chem.ucla.edu _/ _/ _/ _/_/_/ _/ _/
AOL: codeweaver _/_/ _/ _/ _/ _/ _/_/_/
CIS: 71232,766 _/ _/_/ _/ _/ _/ _/
http://www.chem.ucla.edu/~nick/ _/ _/ _/_/_/ _/ _/
---------------------------
From Nicholas Ursa <nicku@planeteer.com>
Subject: Reference Tools
Date: Tue, 17 Sep 1996 22:04:59 -0500
Organization: Emerald Productions
( I had previously posted this message in comp.sys.mac.programmer.help,
but it got deleted. I can only suppose that it was inappropriate there
and more appropriate here. I am a certified newbie and need to be told
when I am doing something wrong. )
I am also new to Mac programming and would appreciate some advice about
which programming references to get. Could anyone tell me about which of
the following have proved most useful, which are necessary, and which
are not?
Macintosh Toolbox Assistant - Apple
Think Reference - Synantec
Inside Macintosh on CD-ROM - Apple
any others
I don't want to have to constantly swap CD-ROMs while I'm working.
P.S. What format are the Inside Macintosh documents in on the the
CD-ROM. Docviewer, Acrobat, or something else.
Any help would be appreciated.
- -----------
Nicholas Ursa
nicku@planeteer.com
+++++++++++++++++++++++++++
From nick@chem.ucla.edu ( nick.c )
Date: Wed, 18 Sep 1996 11:06:27 -0800
Organization: Binary Poet & Molecular Sculptor
nicku@planeteer.com wrote:
>I am also new to Mac programming and would appreciate some advice about
>which programming references to get. Could anyone tell me about which of
>the following have proved most useful, which are necessary, and which
>are not?
>
> Macintosh Toolbox Assistant - Apple
> Think Reference - Synantec
> Inside Macintosh on CD-ROM - Apple
> any others
>
>I don't want to have to constantly swap CD-ROMs while I'm working.
Of the above, I get the most milage out of Think Reference.
The data in the data bases is a little out of date (and
we have no idea when/if Symantec will update it), but the
TR engine makes it extremely easy to use and find the data
you need. Also, 95% of everything you need to know is
in TR and still valid (folks tend to exagerate the "out-
of-datedness" of TR, out of ... fondness ... for Symantec
Corp. :-). Symantec's www site is:
<http://www.symantec.com/>
...althought they don't list TR as one of their
devtools, just cafe and vis cafe. Dunno.
MPTA is (IMHO) less useful than TR. It's less intuitive,
more of hassle to setup, and has an explosive incompatibility
with (I believe) NOW utilities compression. (Disclaimer:
this may be fixed now by either NOW or Apple, dunno--my copy
still crashes if I quit it and the archives have been compressed)
It does have the most current data, in a hypertext format and
Apple has been making updates to it available online. More
info is available at:
<http://devworld.apple.com/dev/mpta.shtml>
NIM on CD has all the current NIM in Docviewer format--which
means it is searchable, but about as readable as stereo
instructions and not hypertext linked. NIM is the definitive
source of info for the toolbox, and is definitely the last
word on a routine you're unsure of. But I usually go to
the more readable/accessible TR first, and often don't
need to go to NIM (or just lookup the data in my NIM hard
copy--you really only need 2-3 NIM, for 90% of your programming
questions). More info (and DL'able softcopies of NIM)
are available at:
<http://devworld.apple.com/dev/insidemac.shtml>.
Another kool tool worth mentioning is the MacTech CD. MacTech
magazine is about Macintosh programming (lot's of
how-to articles). MacTech put all 10 years worth of their
Magazine on a CD, all accessible via Think Reference, and
worked out a deal with Symantec so they could include TR
and the TR databases as well. TR will give you the short
story, then you can check out the article archives for
hypertext versions of more detailed articles on the issue
you're interested in. (Disclaimer: I do have a relationship
with MacTech--so I'm not a completely unbiased party on
this one) You can get more info on the MacTech CD at:
<http://web.xplain.com/mactech.com/cdrom/>.
-------------------= Nicholas C. DeMello, Ph.D. =--------------------
Internet: nick@chem.ucla.edu _/ _/ _/ _/_/_/ _/ _/
AOL: codeweaver _/_/ _/ _/ _/ _/ _/_/_/
CIS: 71232,766 _/ _/_/ _/ _/ _/ _/
http://www.chem.ucla.edu/~nick/ _/ _/ _/_/_/ _/ _/
---------------------------
From alex@metcalf.demon.co.uk (Alex Metcalf)
Subject: SetGWorld needed before CopyBits?
Date: Wed, 18 Sep 1996 18:48:20 GMT
Organization: (none)
Hi y'all,
A quick question on my otherwise sound (!) knowledge of graphics
worlds. I seem to remember somewhere that you should set the port to the
destination of a CopyBits call before doing that call. Is that still the
case, and so, for example, should I do a SetGWorld to world 2 if I'm
copying from world 1 to world 2?
Alex
--
Alex Metcalf
alex@metcalf.demon.co.uk
+++++++++++++++++++++++++++
From g-kendall@nwu.edu (Brian Kendall)
Date: Thu, 19 Sep 1996 17:07:26 -0400
Organization: Programmer
In article <alex-1809961949140001@metcalf.demon.co.uk>,
alex@metcalf.demon.co.uk (Alex Metcalf) wrote:
> Hi y'all,
>
> A quick question on my otherwise sound (!) knowledge of graphics
> worlds. I seem to remember somewhere that you should set the port to the
> destination of a CopyBits call before doing that call. Is that still the
> case, and so, for example, should I do a SetGWorld to world 2 if I'm
> copying from world 1 to world 2?
>
>
>
> Alex
>
> --
> Alex Metcalf
> alex@metcalf.demon.co.uk
Yes, this can be done. I have for a long time copied between graphic
worlds without setting it first. Just one problem: you can't copy to a
window unless you set the GWorld. THIS WILL CAUSE THE COMPUTER TO CRASH,
so look out.
You have to set back to the orginal GWorld to copy to a window, otherwise
you should get some big problems.
Hope this helps
Brian K.
ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
"If you take cranberries and stew them like apple sauce, it tastes
much more like prunes then rhubarb does." ã Groucho Marx
ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
+++++++++++++++++++++++++++
From jstiles@uclink4.berkeley.edu (John Stiles)
Date: Wed, 18 Sep 1996 22:23:58 -0800
Organization: University of California, Berkeley
In article <alex-1809961949140001@metcalf.demon.co.uk>,
alex@metcalf.demon.co.uk (Alex Metcalf) wrote:
> Hi y'all,
>
> A quick question on my otherwise sound (!) knowledge of graphics
> worlds. I seem to remember somewhere that you should set the port to the
> destination of a CopyBits call before doing that call. Is that still the
> case, and so, for example, should I do a SetGWorld to world 2 if I'm
> copying from world 1 to world 2?
You might get away with calling CopyBits without setting the GWorld, but I
wouldn't recommend it. It might cause the copy to go wrong, and it might
crash in the future. I had some really weird coloration bugs in a program
called French Kiss that I wrote; they all went away when I became
religious about setting the port before any CopyBits calls. Oddly enough,
the PPC was very lenient about it, but 68Ks caused all sorts of weird
glitches.
*Stiles
---------------------------
From fettig@sol.cs.uni-sb.de (Thomas Fettig)
Subject: Stress Testing - QC - CW
Date: 09 Sep 1996 07:48:28 GMT
Organization: University of Saarland, Computing Center, Germany.
Hi,
I just learned that there's a stress testing tool for the Mac, called QC,
with some support for CW. Tools like this are well known and widely used
in the rest of the industry, and are often free software. To now it
seemed to me that the archaic design of the MacOs would prevent such a
tool from beeing effective. Before i go on and buy QC, i'd like to know
if and what exists as stress testing, memory watching or other runtime
debugging tool for the Mac. Is QC unique ? What are the experiences with QC?
thanks for taking time
tom
+++++++++++++++++++++++++++
From squires@crl.com (Scott Squires)
Date: Mon, 09 Sep 1996 02:51:41 -0800
Organization: Puffin Designs
In article <FETTIG.96Sep9094828@sol.cs.uni-sb.de>,
fettig@sol.cs.uni-sb.de (Thomas Fettig) wrote:
>Hi,
>
>I just learned that there's a stress testing tool for the Mac, called QC,
>with some support for CW. Tools like this are well known and widely used
>in the rest of the industry, and are often free software. To now it
>seemed to me that the archaic design of the MacOs would prevent such a
>tool from beeing effective. Before i go on and buy QC, i'd like to know
>if and what exists as stress testing, memory watching or other runtime
>debugging tool for the Mac. Is QC unique ? What are the experiences with QC?
>
Sorry, the MacOS is not as archaic is you seem to believe.
QC is very good tool. If you have Codewarrior you can use the demo
provided. Just contact Onyx Tech for a temp serial number.
There are other programs available for different functions.
The Memory Mine seems to be similar to QC. (I've never used it)
Among the freeware types of programs from Apple are:
EvenBetterBusError which checks memory location 0.
DisposeResource for bad disposing of resources.
DoubleTrouble checks for dereferenced handles(?)
Leaks checks for memory leaks.
MemHell, Debugging Modern Memory Manager,Blat, etc.
are all useful.
You can also call or go into MacsBug and do purges or scambles
of the heap.
There are a few other things on the CW disk:
ZoneRanger is used for checking general memory leaks.
DebugNew can be used for checking memory leaks.
BugHuntLite does a number of meory checks.
-scott
Scott Squires "Insert funny stuff here"
squires@crl.com
ScottSquir@aol.com
+++++++++++++++++++++++++++
From Steve Makohin <WaterEdgSW@aol.com>
Date: 10 Sep 1996 00:47:36 GMT
Organization: Water's Edge Software
In article <FETTIG.96Sep9094828@sol.cs.uni-sb.de> Thomas Fettig,
fettig@sol.cs.uni-sb.de writes:
>I just learned that there's a stress testing tool for the Mac, called QC,
>with some support for CW. Tools like this are well known and widely used
>in the rest of the industry, and are often free software. To now it
>seemed to me that the archaic design of the MacOs would prevent such a
>tool from beeing effective. Before i go on and buy QC, i'd like to know
>if and what exists as stress testing, memory watching or other runtime
>debugging tool for the Mac. Is QC unique ? What are the experiences with QC?
We wouldn't ship a product without using QC. It's a control panel that
you aim at any executing code. It makes just about any memory related
problem show up during testing instead of at your users' hands. It's
relatively inexpensive ($99US) and it work well. It paid for itself
within the first 1/2 hour of use in our shop.
-Steve Makohin
Water's Edge Software
(Makers of Tools Plus & SuperCDEFs)
http://www.interlog.com/~wateredg
+++++++++++++++++++++++++++
From fettig@sol.cs.uni-sb.de (Thomas Fettig)
Date: 10 Sep 1996 16:18:30 +0200
Organization: DFKI GmbH
Hi,
<me wrote>
> >in the rest of the industry, and are often free software. To now it
> >seemed to me that the archaic design of the MacOs would prevent such a
> >tool from beeing effective. Before i go on and buy QC, i'd like to know
<Scott Squires wrote>
> Sorry, the MacOS is not as archaic is you seem to believe.
You mean, not even as archaic as it is slow ? P-}
(sorry no pun intended, just a observation in the light of severly
lacking features other systems have. Just look at the filesystem!
It's incredibly inflexible and should have been 'renovated' five
years ago. It looks like Apple was just 'stacking things on the
heap' without looking back.)
> QC is very good tool. If you have Codewarrior you can use the demo
> provided. Just contact Onyx Tech for a temp serial number.
I think such a strong positive word makes me buy it :).
> There are other programs available for different functions.
> The Memory Mine seems to be similar to QC. (I've never used it)
>
> Among the freeware types of programs from Apple are:
> EvenBetterBusError which checks memory location 0.
> DisposeResource for bad disposing of resources.
> DoubleTrouble checks for dereferenced handles(?)
> Leaks checks for memory leaks.
> MemHell, Debugging Modern Memory Manager,Blat, etc.
> are all useful.
> You can also call or go into MacsBug and do purges or scambles
> of the heap.
>
> There are a few other things on the CW disk:
> ZoneRanger is used for checking general memory leaks.
> DebugNew can be used for checking memory leaks.
> BugHuntLite does a number of meory checks.
>
Do these other tools cover more areas than QC, or does QC all
what they do and then some?
thank you for taking time
tom
+++++++++++++++++++++++++++
From squires@crl.com (Scott Squires)
Date: Tue, 10 Sep 1996 17:10:28 -0800
Organization: Puffin Designs
In article <w3rafuyh2rt.fsf@sol.cs.uni-sb.de>,
fettig@sol.cs.uni-sb.de (Thomas Fettig) wrote:
>
>Do these other tools cover more areas than QC, or does QC all
>what they do and then some?
>
A number of these overlap what QC does.
QC currently doesn't check for memory leaks but supposiedly
they're working on it.
For now you can use ZoneRanger for general leaks and
DebugNew for internal C++ leaks.
BugHuntLite offers some additional functionality.
If you have CodeWarrior check the info with these and
some of the other tools/demos.
-scott
Scott Squires "Insert funny stuff here"
squires@crl.com
ScottSquir@aol.com
+++++++++++++++++++++++++++
From devon@onyx-tech.com (Devon Hubbard)
Date: Wed, 18 Sep 1996 13:33:37 -0700
Organization: Onyx Technology
In article <w3rafuyh2rt.fsf@sol.cs.uni-sb.de>, fettig@dfki.uni-sb.de wrote:
> Hi,
>
> <me wrote>
> > >in the rest of the industry, and are often free software. To now it
> > >seemed to me that the archaic design of the MacOs would prevent such a
> > >tool from beeing effective. Before i go on and buy QC, i'd like to know
>
> <Scott Squires wrote>
> > Sorry, the MacOS is not as archaic is you seem to believe.
> You mean, not even as archaic as it is slow ? P-}
> (sorry no pun intended, just a observation in the light of severly
> lacking features other systems have. Just look at the filesystem!
> It's incredibly inflexible and should have been 'renovated' five
> years ago. It looks like Apple was just 'stacking things on the
> heap' without looking back.)
>
> > QC is very good tool. If you have Codewarrior you can use the demo
> > provided. Just contact Onyx Tech for a temp serial number.
> I think such a strong positive word makes me buy it :).
>
> > There are other programs available for different functions.
> > The Memory Mine seems to be similar to QC. (I've never used it)
> >
> > Among the freeware types of programs from Apple are:
> > EvenBetterBusError which checks memory location 0.
> > DisposeResource for bad disposing of resources.
> > DoubleTrouble checks for dereferenced handles(?)
> > Leaks checks for memory leaks.
> > MemHell, Debugging Modern Memory Manager,Blat, etc.
> > are all useful.
> > You can also call or go into MacsBug and do purges or scambles
> > of the heap.
> >
> > There are a few other things on the CW disk:
> > ZoneRanger is used for checking general memory leaks.
> > DebugNew can be used for checking memory leaks.
> > BugHuntLite does a number of meory checks.
> >
>
> Do these other tools cover more areas than QC, or does QC all
> what they do and then some?
QC does everything that EvenBetterBusError, DisposeResource,
DoubleTrouble, MemHell, Debugging Memory Manager do as well as perform
scrambles, checks and purges on heaps faster than any other tool
(including Macsbug). ZoneRanger and Memory Mine are more along the lines
of graphical heap displays and althoughthey do offer purging, checking,
it's not as automatic and stressful like what QC does to an application.
As for BugHuntLite, you can contact us for information regarding that
product as we have acquired it from the author and will be releasing a new
commercially available version next month. With runtime memory protection
of accesses outside and within an application's heap blocks, discipline
checking, and ease of use we are proud to be offering yet another powerful
and easy to use tool to the developer community.
If you want to try the fully functional demo of QC, you can grab it from
the following ftp site.
<ftp://ftp.onyx-tech.com//pub/QC/demo/QC_DEMO_API_Installer.hqx>
Please let us know if you have any questions or need further information.
Regards,
dEVoN Hubbard
Onyx Technology
---------------------------
From deltav@atl.mindspring.com
Subject: SymC++ bug: cout not constructed in a timely manner
Date: 11 Sep 1996 18:48:53 GMT
Organization: Delta Vee
According to the C++ spec, it is impossible to guarantee the order in
which global objects with internal linkage (AKA static global objects)
in different compilation units are created...HOWEVER, the compiler
vendor is to ensure that the standard I/O stream objects--cin, cerr, and
cout--are created before any user-defined objects are created.
This does not seem to be the case with Symantec C++ 8 Release 5. I have
code that looks like the following:
FILE: Abstract.h ----------------------------
// Use the STL to keep a collection of the instances of subclasses of
// Abstract that are created, using it as a registry
#include <vector.h>
#include <algo.h>
// Abstract is an abstract class, that is, there is at least one pure
// virtual method declared.
class Abstract
{
// some class methods and data members here...
protected:
vector<Abstract> registry;
public:
Abstract(); // Default constructor
};
FILE: Abstract.cpp ----------------------------
#include <stdlib.h>
#include <iostream.h>
#include "Abstract.h"
// Constructor
Abstract::Abstract
(
)
{
cout << "Abstract::Abstract()" << endl;
}
FILE: Concrete.h -----------------------------
#include "Abstract.h"
class Concrete : public Abstract
{
// class methods and data members
public:
Concrete(); // Default constructor
};
FILE: Concrete.cpp ------------------------------
#include "Concrete.h"
// Declare a static instance of Concrete so that this subclass of
// Abstract will be added to the registry
static Concrete instance;
// Default constructor
Concrete::Concrete
(
)
{
cout << "Concrete::Concrete()" << endl;
registry.push_back(*this); // add this object to the registry
}
FILE: Main.cpp ---------------------------------
#include <stdlib.h>
#include <iostream.h>
#include "Abstract.h"
void
main
(
)
{
// do stuff...
}
- - end of example code -----------------------
When this program loads, the static object in file Concrete.cpp
(instance) will attempt to be created, entering Concrete::Concrete(),
then calling Abstract::Abstract(), but dying the horrible death in the
first cout call it encounters. (To be precise, the call stack indicated
it was in a call to flush().) I rearranged the code to look like this
(only the files I changed will be listed below):
FILE: Concrete.cpp ------------------------------
#include "Concrete.h"
// Don't declare this object here...
// static Concrete instance;
// Default constructor
Concrete::Concrete
(
)
{
cout << "Concrete::Concrete()" << endl;
registry.push_back(*this); // add this object to the registry
}
FILE: Main.cpp ---------------------------------
#include <stdlib.h>
#include <iostream.h>
// #include "Abstract.h"
#include "Concrete.h"
void
main
(
)
{
static Concrete instance; // declare this here instead of in Concrete.cpp
// do stuff...
}
- - end of example code -----------------------
This works fine, which leads me to believe that I attempted to construct
a Concrete object before cout was completely constructed. By the time
main() is reached, I reasoned, cout (and cin, and cerr) were completely
constructed, and so everything worked. If this is wrong, or if I'm doing
something boneheaded, let me know.
Otherwise, this seems to be a bug in the SymC++ compiler.
+jeff
- ---
deltav@atl.mindspring.com
+++++++++++++++++++++++++++
From vinceb@mindspring.com (Vince Bonfanti)
Date: Wed, 18 Sep 1996 12:31:54 -0400
Organization: MindSpring Enterprises
Try putting the following statement as the first in main():
cshow( stdout );
This should construct cin, cout, and cerr for you.
---------------------------
From Geoff Ghose <gghose@bcm.tmc.edu>
Subject: TCP-IP server code for Open Transport?
Date: Tue, 10 Sep 1996 11:06:56 -0500
Organization: Baylor College of Medicine
I need to set up a TCP/IP server which accepts simple ASCII commands.
The source code compilations that I have found so far that seem the
most useful are the NewsWatcher (net.c), which is client only, and a
rather old MacSockets package. It seems like I could use the MacSockets
code and try to modify its tcpglue.c routine for OpenTransport. My
question is: has anyone already done this? Or has anyone implemented a
primitive TCP/IP server that they would be willing to share?
I'm using Codewarrier C. Thanks.
--
*************************************************************************
Geoff Ghose
Div. of Neuroscience One Baylor Plaza S603
Baylor College of Medicine Houston, TX 77030
(713) 798-3277 Fax:(713) 798-3282
Internet: gghose@ligand.neusc.bcm.tmc.edu
gghose@bcm.tmc.edu
And what is more, I agree with everything I have just said.
- Piet Koornhoff
+++++++++++++++++++++++++++
From Binky the Wonderwhorse <binky@mmcorp.com>
Date: 18 Sep 1996 13:17:46 GMT
Organization: Total Jihad, Inc
lo,
I've done this before. I've written a webserver and have the TCP
libraries and stuff down but currently its MacTCP code only (no OT yet).
If you're still interested then mail me.
binks
===========================================================
Binky the Wonderwhorse
Macintosh Software Engineer, Unix SysAdmin, Webmaster, Spod
Multimedia Corporation, London
mail: binky@mmcorp.com
http://www.mmcorp.com/~binky
===========================================================
+++++++++++++++++++++++++++
From bierman@apple.com (Peter Bierman)
Date: Wed, 18 Sep 1996 20:09:57 -0800
Organization: Apple Computer
In article <32359220.471C@bcm.tmc.edu>, Geoff Ghose <gghose@bcm.tmc.edu> wrote:
> I need to set up a TCP/IP server which accepts simple ASCII commands.
There's a bunch of sample code snippets at:
http://devworld.apple.com/dev/opentransport/samples.html
-pmb
--
lunatic@cs.wisc.edu <A HREF="http://dax.cs.wisc.edu/~lunatic/">me</a>
Q: Am I unique and special in the universe?
A: There are over 10,000 major university and corporate sites running
exact duplicates of you in the present release version.
---------------------------
From mshay@csranet.com (Michael Hay)
Subject: TextEdit Question
Date: Mon, 16 Sep 1996 19:37:05 -0500
Organization: Poor
In a program I'm developing I have several text edit records of a few
lines each seperated by picts. I've got everything working with respect
to the text fields except when I use the scroll bars associated with the
window. I'm not trying to scroll the text inside its viewRect, I'm trying
to scroll everything in the window including the text fields.
As long as the window has not been scrolled, a mousedown in one of the
text fields activates the edit record and places the blinking carat
appropriately. I can enter text and edit it, make selections, etc.
However when the window has been scrolled, a mousedown in one of the text
fields does not work correctly. It still thinks the destRect is still in
the non-scrolled position. I think the problem is with TEClick.
Anyway, I've tryed using SetOrigin, adjusting the mousedown location by
the amount scrolled, and the TEScroll. None of these has worked.
Do you have to manually adjust the destRect and viewRects of the edit
record each time you activate it when the window has been scrolled?
I've looked through IM and can't seem to find anything about this. I
haven't been able to find any source code examples with this type of
situation either.
I would sure appreciate any pointers to source code or IM references that
could help me solve this problem. I'm using CW 9 and programming in C.
Thanks in advance,
Mike
- -----------------------------------------------------------------
Michael Hay, Ph.D. /| \/\/
mshay@csranet.com / |\ -< >- "Better Living
CSRA Internet / | \ /\/\ through Sailing"
Evans, GA /___|__\
_____|____
\________/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
+++++++++++++++++++++++++++
From francois-regis.degott@imag.fr (Fr. Degott)
Date: 17 Sep 1996 10:22:29 GMT
Organization: LogiMath - LMC-IMAG - Grenoble
In article <mshay-1609961937050001@line085.csranet.com>, mshay@csranet.com
(Michael Hay) wrote:
>[cut]
> As long as the window has not been scrolled, a mousedown in one of the
> text fields activates the edit record and places the blinking carat
> appropriately. I can enter text and edit it, make selections, etc.
> However when the window has been scrolled, a mousedown in one of the text
> fields does not work correctly. It still thinks the destRect is still in
> the non-scrolled position. I think the problem is with TEClick.
>
> Anyway, I've tryed using SetOrigin, adjusting the mousedown location by
> the amount scrolled, and the TEScroll. None of these has worked.
>
> Do you have to manually adjust the destRect and viewRects of the edit
> record each time you activate it when the window has been scrolled?
> I've looked through IM and can't seem to find anything about this. I
> haven't been able to find any source code examples with this type of
> situation either.
Hi Michael,
i've never scrolled (moved) text items in a window (dialog), but i know that
when you move a control with MoveControl(), you must set his RectBox
to the new location, with SetDItem(...,theNewRect).
I presume this will be the same with other items, like text...
HTH
Fr.
_____________________________________________________________________________
Fr. Degott (Francois-Regis.Degott@imag.fr)
LogiMath, Lab. LMC-IMAG - Grenoble - France
+++++++++++++++++++++++++++
From bilewicz@helf4.physik.fu-berlin.de (Roger Bilewicz)
Date: 18 Sep 96 12:13:50 GMT
Organization: Freie Universitaet Berlin
mshay@csranet.com (Michael Hay) writes:
>In a program I'm developing I have several text edit records of a few
>lines each seperated by picts. ...
Sounds as if you should use WASTE, the TextEdit replacement allowing to
embed pictures in a SINGLE text record.
> ...
>Do you have to manually adjust the destRect and viewRects of the edit
>record each time you activate it when the window has been scrolled?
Yes. (Scrolling is the point, not activating.)
>I've looked through IM and can't seem to find anything about this. I
>haven't been able to find any source code examples with this type of
>situation either.
NIM:Toolbox Essentials, the control manager's chapter (I'm quite sure...).
>I would sure appreciate any pointers to source code or IM references that
>could help me solve this problem. ...
There is a bare-bone example in the 'Sample Code' folder on the developer
CDs, it should also be on Apple's ftp server. Look for 'TESample' or
'StyledText Sample' or something like this. Unfortunately, almost all
sample code has been rewritten in C now. :-((
>Thanks in advance,
>Mike
Hope it helps,
Roger
+++++++++++++++++++++++++++
From mouser@zercom.net (Martin-Gilles Lavoie)
Date: 18 Sep 1996 15:25:45 GMT
Organization: Groupimage, inc.
In article <mshay-1609961937050001@line085.csranet.com>, mshay@csranet.com
(Michael Hay) wrote:
[...]
> As long as the window has not been scrolled, a mousedown in one of the
> text fields activates the edit record and places the blinking carat
> appropriately. I can enter text and edit it, make selections, etc.
> However when the window has been scrolled, a mousedown in one of the text
> fields does not work correctly. It still thinks the destRect is still in
> the non-scrolled position. I think the problem is with TEClick.
>
> Anyway, I've tryed using SetOrigin, adjusting the mousedown location by
> the amount scrolled, and the TEScroll. None of these has worked.
>
> Do you have to manually adjust the destRect and viewRects of the edit
> record each time you activate it when the window has been scrolled?
Depending on how you actually scroll you window content, this may be of
some help.
When moving TextEdit fields (weither in a dialog or plain window), you
must not only set both destRect and viewRect accordingly, but also call
TECalText and TEUpdate to give a chance to TextEdit to recalculate
line/character positions, target areas and so forth.
Following is code I use to move dialog items, which takes care of properly
handling controls and edit fields.
void MoveDialogItem ( DialogPtr theDialog,
short itemID,
short h,
short v) {
Handle itemHandle = nil;
Rect itemRect = {0, 0, 0, 0};
short itemType = 0;
//h and v are relative to current position of the item
SetPort(theDialog);
GetDialogItem(theDialog, itemID, &itemType, &itemHandle, &itemRect);
itemRect.top = itemRect.top + v;
itemRect.left = itemRect.left + h;
itemRect.bottom = itemRect.bottom + v;
itemRect.right = itemRect.right + h;
SetDialogItem(theDialog, itemID, itemType, itemHandle, &itemRect);
switch (itemType) {
case ctrlItem:
case ctrlItem + chkCtrl:
case ctrlItem + radCtrl:
case ctrlItem + resCtrl:
case ctrlItem + itemDisable:
case ctrlItem + chkCtrl + itemDisable:
case ctrlItem + radCtrl + itemDisable:
case ctrlItem + resCtrl + itemDisable:
MoveControl((ControlHandle) itemHandle, itemRect.left,
itemRect.top);
break;
case editText:
case editText + itemDisable:
if (itemID == ((DialogRecord*)theDialog)->editField + 1) {
((DialogRecord*)theDialog)->textH[0]->viewRect.top =
itemRect.top;
((DialogRecord*)theDialog)->textH[0]->viewRect.left
= itemRect.left;
((DialogRecord*)theDialog)->textH[0]->viewRect.bottom
= itemRect.bottom;
((DialogRecord*)theDialog)->textH[0]->viewRect.right =
itemRect.right;
((DialogRecord*)theDialog)->textH[0]->destRect.top =
((DialogRecord*)theDialog)->textH[0]->destRect.top + v;
((DialogRecord*)theDialog)->textH[0]->destRect.left =
((DialogRecord*)theDialog)->textH[0]->destRect.left + h;
((DialogRecord*)theDialog)->textH[0]->destRect.bottom =
((DialogRecord*)theDialog)->textH[0]->destRect.bottom + v;
((DialogRecord*)theDialog)->textH[0]->viewRect.right =
((DialogRecord*)theDialog)->textH[0]->viewRect.right + h;
TECalText(((DialogRecord*)theDialog)->textH);
TEUpdate(&itemRect, ((DialogRecord*)theDialog)->textH);
}
break;
default:break;
}
}
--
Martin-Gilles Lavoie
"The only trinary-state binary system known to live"
[Develop issue 24, page 4]
---------------------------
From Raphael Schumacher <schumacherr@vptt.ch>
Subject: UNIX - editing UNIX files with a Mac editor
Date: 17 Sep 1996 13:57:25 GMT
Organization: Swiss Telecom
Hi
I'd like to edit C++ program files stored on HP UX workstations with our
fine
Mac editor programs (Metrowerks, BBEdit a.o.).
What kind of software is available that lets me access files on a UNIX
(NFS) workstation as if it were an AppleShare server?
I think eXodus is not the right software that for (it's "only", but fine,
X-Windows display server, isn't it?).
Thanks for your hints in advance, rgds
RAPHAEL
_________________________________________________________________
| RAPHAEL J. SCHUMACHER Swiss Telecom, R&D 64 |
| schumacherr@vptt.ch Zentweg 25c, CH-3000 BERNE 29 |
| Tel. +41 31 338 46 59 Fax. +41 31 338 99 04 |
_________________________________________________________________
+++++++++++++++++++++++++++
From squires@crl.com (Scott Squires)
Date: Tue, 17 Sep 1996 22:57:52 -0800
Organization: Puffin Designs
In article <51mao5$le8@news.vptt.ch>,
Raphael Schumacher <schumacherr@vptt.ch> wrote:
>Hi
>
>I'd like to edit C++ program files stored on HP UX workstations with our
>fine
>Mac editor programs (Metrowerks, BBEdit a.o.).
>What kind of software is available that lets me access files on a UNIX
>(NFS) workstation as if it were an AppleShare server?
>
>I think eXodus is not the right software that for (it's "only", but fine,
>X-Windows display server, isn't it?).
>
>
BBEdit 4.0 supports ftp directly. Could this do what you want?
-scott
Scott Squires "Insert funny stuff here"
squires@crl.com
ScottSquir@aol.com
+++++++++++++++++++++++++++
From jude@smellycat.com (Jude Giampaolo)
Date: Wed, 18 Sep 1996 00:15:28 -0400
Organization: CyberDrugs
In article <dsample-1709962123070001@tubular-15.synapse.net>,
dsample@synapse.net (Don Sample) wrote:
> In article <51mao5$le8@news.vptt.ch>, Raphael Schumacher
> <schumacherr@vptt.ch> wrote:
>
> >I'd like to edit C++ program files stored on HP UX workstations with our
> >fine
> >Mac editor programs (Metrowerks, BBEdit a.o.).
> >What kind of software is available that lets me access files on a UNIX
> >(NFS) workstation as if it were an AppleShare server?
> >
> There are several companies which make NFS client software for the
> Macintosh. A couple I have used come from Thursby Software and
> Wollagong. You can find them on the web at www.thursby.com, and
> www.twg.com.
You might also want to look into either CAP or netatalk which run on the
UNIX bag and make it appear to be an AppleShare server.
Please note the followups as this is really not a Macintosh programming issue.
--
Jude Charles Giampaolo 'There's not much to see actually,
jcg8@po.cwru.edu we're inside a Chinese dragon...'
jude@smellycat.com http://prozac.cwru.edu/jude/JudeHome.html
Mac NFS serevr: http://prozac.cwru.edu/jude/macnfs/Macnfsd.html
+++++++++++++++++++++++++++
From kuznetso@mit.edu (Eugene Kuznetsov)
Date: Wed, 18 Sep 1996 20:11:35 -0400
Organization: Massachvsetts Institvte of Technology
In article <gregf-1809961032210001@godzilla.sps.mot.com>,
gregf@vulture.sps.mot.com (Greg Ferguson) wrote:
> In article <51mao5$le8@news.vptt.ch>, Raphael Schumacher
> <schumacherr@vptt.ch> wrote:
[...]
> >What kind of software is available that lets me access files on a UNIX
> >(NFS) workstation as if it were an AppleShare server?
[...]
> Intercon has some NFS software that'll do what you want. Check out
> www.intercon.com.
An even better solution is to run an appleshare server on the unix box
itself. CAP and Netatalk are two possible solutions. Netatalk is very
nice, and compiles on many unices. Some have claimed that a fast Linux
box with Netatalk is often faster than a decent Mac running AppleShare.
Eugene Kuznetsov
kuznetso@mit.edu
+++++++++++++++++++++++++++
From gregf@vulture.sps.mot.com (Greg Ferguson)
Date: Wed, 18 Sep 1996 10:32:20 -0700
Organization: Internet Direct
In article <51mao5$le8@news.vptt.ch>, Raphael Schumacher
<schumacherr@vptt.ch> wrote:
>I'd like to edit C++ program files stored on HP UX workstations with our
>fine
>Mac editor programs (Metrowerks, BBEdit a.o.).
>What kind of software is available that lets me access files on a UNIX
>(NFS) workstation as if it were an AppleShare server?
>
>I think eXodus is not the right software that for (it's "only", but fine,
>X-Windows display server, isn't it?).
Intercon has some NFS software that'll do what you want. Check out
www.intercon.com.
Greg
--
--
"Death Ray!? Fiddlesticks! It doesn't even slow them down!"
- Charles Adams
---------------------------
From mmucker@airmail.net (Matthew Mucker)
Subject: When are dialog items drawn?
Date: Tue, 17 Sep 1996 14:25:47 +0500
Organization: Internet America
My app uses a dialog box with pull-down menus. I want to draw a frame
around my pull-down menus with a drop shadow. I added the code to my
program, but the frames end up being drawn before the dialog items, and
then the dialog box items overwrite my menu frames. So, when does the
dialog box actually get drawn? How do I force it to draw itself? By
stepping through my code, it seems as though the dialog box is being drawn
by DialogSelect. This just doesn't seem right to me. What did I miss?
Here's the code where I draw the dialog box and menu frames.
gCardDlog := GetNewDialog(CARDDLOG, nil, WindowPtr(-1));
ShowWindow(gCardDlog);
SetPort(gCardDlog);
{Draw Popup menu frames}
for itemNumber := FIRST_POPUP to LAST_POPUP do
begin
GetDItem(gCardDlog, itemNumber, itemType, itemHandle, itemRect);
FrameRect(itemRect);
MoveTo(itemRect.left + 1, itemRect.bottom);
LineTo(itemRect.right, itemRect.bottom);
LineTo(itemRect.right, itemRect.top + 1);
end;
Thanks to all who offer suggestions.
-Matt
--
Life is 10% what happens to you, and 90% how you respond to what happens to you.
+++++++++++++++++++++++++++
From francois-regis.degott@imag.fr (Fr. Degott)
Date: 18 Sep 1996 09:54:30 GMT
Organization: LogiMath - LMC-IMAG - Grenoble
In article <mmucker-1709961425470001@fw6-6.ppp.iadfw.net>,
mmucker@airmail.net (Matthew Mucker) wrote:
> My app uses a dialog box with pull-down menus. I want to draw a frame
> around my pull-down menus with a drop shadow. I added the code to my
> program, but the frames end up being drawn before the dialog items, and
> then the dialog box items overwrite my menu frames. So, when does the
> dialog box actually get drawn? How do I force it to draw itself? By
> stepping through my code, it seems as though the dialog box is being drawn
> by DialogSelect. This just doesn't seem right to me. What did I miss?
> Here's the code where I draw the dialog box and menu frames.
> gCardDlog := GetNewDialog(CARDDLOG, nil, WindowPtr(-1));
> ShowWindow(gCardDlog);
> SetPort(gCardDlog);
> {Draw Popup menu frames}
> for itemNumber := FIRST_POPUP to LAST_POPUP do
> begin
> GetDItem(gCardDlog, itemNumber, itemType, itemHandle, itemRect);
> FrameRect(itemRect);
> MoveTo(itemRect.left + 1, itemRect.bottom);
> LineTo(itemRect.right, itemRect.bottom);
> LineTo(itemRect.right, itemRect.top + 1);
> end;
Hi Matt,
the update events are managed by the ModalDialog() routine,
that i presume you work with and call _after_ the popup drawing.
To prevent such a thing, you must wrote a dialog filter (1st param of
ModalDialog)
and manage the dialog updates yourself, calling first UpdateDialog()
to redraw the "standard" items, then calling your popup drawing
routine for the popup borders....
PS1: See the Dialog manager for dialog filter.
PS2: Why not use the popup cdef, see any apple web site.
HTH
Fr.
_____________________________________________________________________________
Fr. Degott (Francois-Regis.Degott@imag.fr)
LogiMath, Lab. LMC-IMAG - Grenoble - France
+++++++++++++++++++++++++++
From dstone@chem.utoronto.ca (David Stone)
Date: Wed, 18 Sep 1996 12:38:31 GMT
Organization: University of Toronto Chemistry
In article <mmucker-1709961425470001@fw6-6.ppp.iadfw.net>,
mmucker@airmail.net (Matthew Mucker) wrote:
>
> My app uses a dialog box with pull-down menus. I want to draw a frame
> around my pull-down menus with a drop shadow. I added the code to my
> program, but the frames end up being drawn before the dialog items, and
> then the dialog box items overwrite my menu frames. So, when does the
> dialog box actually get drawn? How do I force it to draw itself? By
> stepping through my code, it seems as though the dialog box is being drawn
> by DialogSelect. This just doesn't seem right to me. What did I miss?
>
Usual method is to declare the location of the items in the DITL
resource using userItem's, and then write an action procedure
which can be added into the dialog item list's record. This
way, DialogSelect or ModalDialog will take care of the drawing
by calling your procedure whenever needed. This was how you did
outlining of the default button before the extended dialog routines
were added to the toolbox.
Pre-PPC, it would look something like (very bare bones and rough!)
pascal void MyItemProc(WindowPtr theWindow,short theItem) {
short aType;
Handle aHndl;
Rect aRect;
GetDItem(theWindow,theItem,&aType,&aHndl,&aRect);
FrameRect(&aRect);
}
and you would put this in your dialog initialization code
// get the dialog resource then initialize stuff...
GetDItem(myDlg,myItem,&aType,&aHndl,&aRect);
SetDItem(myDlg,myItem,aType,MyItemProc,&aRect);
This code should be corrected to correctly get a procedure pointer,
I just don't remember that stuff off the top of my head.
Note that DialogSelect/ModalDialog should set the current port to
the dialog's port before calling your code, so you shouldn't need
to do this yourself.
The alternative with modeless dialogs is to trap update events
and put your drawing code in there, along with any other
special dialog handling stuff you need.
Dave Stone
+++++++++++++++++++++++++++
From rdwells@mmm.com (Richard Wells)
Date: Wed, 18 Sep 1996 14:58:57 -0500
Organization: Imation
Matthew Mucker wrote:
>
> My app uses a dialog box with pull-down menus. I want to draw a frame
> around my pull-down menus with a drop shadow. I added the code to my
> program, but the frames end up being drawn before the dialog items, and
> then the dialog box items overwrite my menu frames. So, when does the
> dialog box actually get drawn? How do I force it to draw itself? By
> stepping through my code, it seems as though the dialog box is being drawn
> by DialogSelect. This just doesn't seem right to me. What did I miss?
>
> Here's the code where I draw the dialog box and menu frames.
>
> gCardDlog := GetNewDialog(CARDDLOG, nil, WindowPtr(-1));
> ShowWindow(gCardDlog);
> SetPort(gCardDlog);
>
> {Draw Popup menu frames}
> for itemNumber := FIRST_POPUP to LAST_POPUP do
> begin
> GetDItem(gCardDlog, itemNumber, itemType, itemHandle, itemRect);
> FrameRect(itemRect);
> MoveTo(itemRect.left + 1, itemRect.bottom);
> LineTo(itemRect.right, itemRect.bottom);
> LineTo(itemRect.right, itemRect.top + 1);
> end;
Try creating a userItem for each of the frames, and put the above
code in a draw function used by each of the userItems. I think
if you place each userItem after its corresponding menu in the
DITL, things will get drawn in the proper order; however, I haven't
done this for a while, so they may have to be before the menu.
Experiment. Whichever way it is, IIRC it's whichever way makes
it more difficult to use ResEdit (that is, in your case the
userItems end up appearing over the menu items, making it problematic
to select the menu items).
Opinions expressed herein are my own and may not represent those of my employer.
---------------------------
From MWRon@metrowerks.com (MW Ron)
Subject: [Job] Metrowerks Java Team
Date: Fri, 13 Sep 1996 20:35:39 -0400
Organization: Metrowerks
Come join the dream of making Java happen.
Metrowerks is looking for two bright Macintosh programmers to work on the
Java Virtual Machine.
This is low-level work making the impossible happen, and cleanly, no
turning hacks into products. A little knowledge of PPC/68K assembly and
calling conventions would go a long way. Successful candidates will be
required to give short essay on why Macsbug is better that Jasiks.
3-5 years of solid Macintosh experience and shipping products would be
required. An ability to think up product names that do not involve coffee
metaphors is a plus.
Please send all resumes to:
Email: jager@metrowerks.com
Web: <http://www.metrowerks.com/about/jobs>
Fax: (512)873-4901 (Attn: Marcus Jager)
Snail:
Metrowerks, Corp.
2201 Donley Dr., #310
Austin, TX 78758
--
METROWERKS Ron Liechty
"Software at Work" MWRon@metrowerks.com
http://www.metrowerks.com/about/people/rogues.html#mwron
+++++++++++++++++++++++++++
From david_rehring@gdt.com (David Rehring)
Date: Fri, 13 Sep 1996 18:04:07 -0700
Organization: GDT Softworks, Inc.
In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
MWRon@metrowerks.com (MW Ron) wrote:
...various stuff deleted...
>>Successful candidates will be
>>required to give short essay on why Macsbug is better that Jasiks.
...various stuff deleted...
>>--
>>METROWERKS Ron Liechty
>>"Software at Work" MWRon@metrowerks.com
>>http://www.metrowerks.com/about/people/rogues.html#mwron
Well, it'd be hard to write even a short essay on that topic! Of course,
it would be of 'War And Peace' length describing why Jasik's is WAY better
than Macsbug. ;-)
Later,
--
David Rehring
Senior Software Engineer
GDT Softworks, Inc.
And all around insane guy!
+++++++++++++++++++++++++++
From William Kiss <bkiss@express.ca>
Date: Fri, 13 Sep 1996 18:30:47 -0700
Organization: Arborealis Research & Development
David Rehring wrote:
>
> In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
> MWRon@metrowerks.com (MW Ron) wrote:
>
> ...various stuff deleted...
>
> >>Successful candidates will be
> >>required to give short essay on why Macsbug is better that Jasiks.
>
> ...various stuff deleted...
> >>--
> >>METROWERKS Ron Liechty
> >>"Software at Work" MWRon@metrowerks.com
> >>http://www.metrowerks.com/about/people/rogues.html#mwron
>
> Well, it'd be hard to write even a short essay on that topic! Of course,
> it would be of 'War And Peace' length describing why Jasik's is WAY better
> than Macsbug. ;-)
>
> Later,
>
> --
> David Rehring
> Senior Software Engineer
> GDT Softworks, Inc.
> And all around insane guy!
^^^^^^^^^^
You'll have to excuse the previous post by my ex-colleague, the
inimitable (and why would one want to?) Mr.Rehring. Clearly MacsBug is
by leaps and bounds the far superior low-level debugger (at least until
Mr.Lockwood's new debugger appears on the scene). People that think
otherwise are "insane". Kudos to Jim Murphy et al for keeping it going.
Bill Kiss
Arborealis Research & Development
PS. Sorry, didn't mean to start a flame war.
+++++++++++++++++++++++++++
From Manuel Veloso <veloso@apix.com>
Date: 14 Sep 1996 22:48:34 GMT
Organization: Active Paper, Inc.
In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net> MW Ron,
MWRon@metrowerks.com writes:
>Successful candidates will be
>required to give short essay on
>why Macsbug is better that Jasiks.
Uh-huh. The only answer I can think of is:
macsbug has a book
:)
actually, the only real answer I can think of is that Macsbug works
under VM/RD, which makes it a little handier.
- ---------------------------------------
Manny Veloso Digital Plumber
Active Paper, Inc. http://www.apix.com
- ---------------------------------------
[------------]
+++++++++++++++++++++++++++
From hsoi@eden.com (John C. Daub)
Date: Sat, 14 Sep 1996 17:53:24 -0500
Organization: Hsoi's Shop
In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
MWRon@metrowerks.com (MW Ron) wrote:
> Metrowerks is looking for two bright Macintosh programmers to work on the
> Java Virtual Machine.
>
> This is low-level work making the impossible happen, and cleanly, no
> turning hacks into products. A little knowledge of PPC/68K assembly and
> calling conventions would go a long way. Successful candidates will be
> required to give short essay on why Macsbug is better that Jasiks.
Um....Macsbug is free. That's enough in my book! :)
> 3-5 years of solid Macintosh experience and shipping products would be
> required. An ability to think up product names that do not involve coffee
> metaphors is a plus.
well, since it's the Virtual Machine, it's kinda a helper app right?
How about "Coffeemate"?? no wait...that's already taken....
(I don't know anything about Java...shoot me! I still think C++ and
PowerPlant are enough for me) :)
--
John C. Daub (aka Hsoi) | Pleasure: <mailto:hsoi@eden.com>
Family Man | Business: none of your business :)
Shareware Author | WWW: <http://www.eden.com/~hsoi/>
MacOS Developer/Geek | "What lasagna? THAT lasagna" - Ajax
+++++++++++++++++++++++++++
From dBrandon@iadfw.net (Bryant Brandon)
Date: Sat, 14 Sep 1996 18:30:30 -0500
Organization: Anti Christian Coalition
In article <hsoi-1409961753250001@hsoi.eden.com>, hsoi@eden.com (John C.
Daub) wrote:
>In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
>MWRon@metrowerks.com (MW Ron) wrote:
>
>> Metrowerks is looking for two bright Macintosh programmers to work on the
>> Java Virtual Machine.
>>
>> This is low-level work making the impossible happen, and cleanly, no
>> turning hacks into products. A little knowledge of PPC/68K assembly and
>> calling conventions would go a long way. Successful candidates will be
>> required to give short essay on why Macsbug is better that Jasiks.
>
>Um....Macsbug is free. That's enough in my book! :)
>
>> 3-5 years of solid Macintosh experience and shipping products would be
>> required. An ability to think up product names that do not involve coffee
>> metaphors is a plus.
>
>well, since it's the Virtual Machine, it's kinda a helper app right?
>
>How about "Coffeemate"?? no wait...that's already taken....
Mr. Coffee? Beer? Crapplets?
Ooh! Ooh! V-SPOC! Very Slow Pieces Of Crap!
WOB-Waste Of Bandwidth
MBIMINII (pronounced "Imbimini")-My Butt Is More Interesting Isn't It?
BMWB (pronounced "bum wub")-Bloats My Web Browser
TBIJ (pronounced "tee bij")-Too bad. It's Java.
This is about the only requirement I meat. Eye kan't eeven spel. Mutch
les right abowt Mac's Bugs andd Jack's Kids. O whale.
>
>(I don't know anything about Java...shoot me! I still think C++ and
>PowerPlant are enough for me) :)
>
>--
>John C. Daub (aka Hsoi) | Pleasure: <mailto:hsoi@eden.com>
>Family Man | Business: none of your business :)
>Shareware Author | WWW: <http://www.eden.com/~hsoi/>
>MacOS Developer/Geek | "What lasagna? THAT lasagna" - Ajax
I'm only here on weekends. If you really want me to see a reply, mail it.
+++++++++++++++++++++++++++
From macnosy@jasik.com (Steve Jasik)
Date: Sun, 15 Sep 1996 10:06:39 -0700
Organization: Jasik Designs
In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
MWRon@metrowerks.com (MW Ron) wrote:
....
>This is low-level work making the impossible happen, and cleanly, no
>turning hacks into products. A little knowledge of PPC/68K assembly and
>calling conventions would go a long way. Successful candidates will be
>required to give short essay on why Macsbug is better that Jasiks.
>
.....
Actually, if you bother to write the essay,
you are immediately disqualified and your resume goes in the bit bucket :-)
Steve
- --------------------------------------------------------
Steve Jasik Author of 'The Debugger & MacNosy'
343 Trenton Way http://www.jasik.com
Menlo Park CA 94025 415-322-1386 Voice Only
+++++++++++++++++++++++++++
From kjohnson@transparent.com (Kent Johnson)
Date: Mon, 16 Sep 1996 02:05:22 GMT
Organization: Transparent Language, Inc.
In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
MWRon@metrowerks.com (MW Ron) wrote:
> Successful candidates will be
> required to give short essay on why Macsbug is better that Jasiks.
Macsbug has an easy-to-use & intuitive command-line interface :-)
Kent Johnson kjohnson@transparent.com
Transparent Language, Inc. http://www.transparent.com
+++++++++++++++++++++++++++
From rea@indra.net (David Rea)
Date: Mon, 16 Sep 1996 15:53:48 GMT
Organization: FBMC
In article <david_rehring-1309961804070001@news.aurora.net>,
david_rehring@gdt.com (David Rehring) wrote:
> In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
> MWRon@metrowerks.com (MW Ron) wrote:
>
> ...various stuff deleted...
>
> >>Successful candidates will be
> >>required to give short essay on why Macsbug is better that Jasiks.
>
> ...various stuff deleted...
> >>--
> >>METROWERKS Ron Liechty
> >>"Software at Work" MWRon@metrowerks.com
> >>http://www.metrowerks.com/about/people/rogues.html#mwron
>
> Well, it'd be hard to write even a short essay on that topic! Of course,
> it would be of 'War And Peace' length describing why Jasik's is WAY better
> than Macsbug. ;-)
>
Well, maybe that's why he asked. If you were interviewing a salesman, you
would ask for a pitch to sell refrigerators to Eskimos, not to Samoans,
right?
--David
+++++++++++++++++++++++++++
From cwood@fiweb.com (Charlie Wood)
Date: 17 Sep 1996 19:19:30 GMT
Organization: First Internet, Inc.
In article <macnosy-1509961007190001@204.119.88.14>, macnosy@jasik.com
(Steve Jasik) wrote:
>In article <MWRon-1309962035390001@aumi1-a09.ccm.tds.net>,
>MWRon@metrowerks.com (MW Ron) wrote:
>
>....
>
>>This is low-level work making the impossible happen, and cleanly, no
>>turning hacks into products. A little knowledge of PPC/68K assembly and
>>calling conventions would go a long way. Successful candidates will be
>>required to give short essay on why Macsbug is better that Jasiks.
>>
>.....
>
>
>Actually, if you bother to write the essay,
>you are immediately disqualified and your resume goes in the bit bucket :-)
>
>Steve
>
>----------------------------------------------------------
>Steve Jasik Author of 'The Debugger & MacNosy'
>343 Trenton Way http://www.jasik.com
>Menlo Park CA 94025 415-322-1386 Voice Only
For some of us, green is still our favorite color. Go Steve Go!
- -
Charlie Wood | cwood@fiweb.com
First Internet, Inc. |
fiWeb(tm) | http://www.fiweb.com
Austin Internet Restaurant Guide(tm) | http://austin.restaurants.fiweb.com
+++++++++++++++++++++++++++
From Jim Moy <jbm@formonix.com>
Date: 18 Sep 1996 20:47:59 GMT
Organization: Formonix, Inc.
> > >>Successful candidates will be
> > >>required to give short essay on why Macsbug is better that Jasiks.
> > >>
> > Well, it'd be hard to write even a short essay on that topic! Of course,
> > it would be of 'War And Peace' length describing why Jasik's is WAY better
> > than Macsbug. ;-)
> >
> Well, maybe that's why he asked. If you were interviewing a salesman, you
> would ask for a pitch to sell refrigerators to Eskimos, not to Samoans,
> right?
But if that were the case, then I think the ROM Debugger would've
been the candidate for comparison :-)
...and if your favorite menu bar color isn't green, then obviously
you haven't been gaining maximum pleasure from your tools...
- -----------------------------------------------------------
Jim Moy * Mac and BeBox Programmer * jbm@formonix.com
http://www.verinet.com/~jbm * Go, Be, Go! http://www.be.com
---------------------------
From Thomas Wurst <zxmjx02@aix07.zdv.uni-tuebingen.de>
Subject: [Q] Can't create CWindow correctly?
Date: Mon, 16 Sep 1996 00:20:20 +0200
Organization: InterNetNews at ZDV Uni-Tuebingen
Hello!
Yet another question: I try to create a colo[u]r window with
GetNewCWindow() and as soon as it's shown my whole screen turns
black&white... and that despite I have a 'wctb'.
In contrast, when I create the same window with GetNewWindow() (the 'wctb'
is erased then) everything is fine...
Am I wrong thinking, that by providing a 'wctb' and using GetNewCWindow()
the system will handle the rest for me just fine?
PS: The 'wctb' is just slightly changed from what ResEdit offers to me,
i.e. black title, white background... rest escapes me
Does [some|any]one have an idea, what I'm doing wrong?
TIA, Thomas.
PPS: What's correct--using 'someone' or 'anyone'?? ;-)
+++++++++++++++++++++++++++
From gchapman@irus.rri.uwo.ca (Greg Chapman)
Date: Mon, 16 Sep 1996 13:14:44 -0500
Organization: Robarts Research Institute
In article
<Pine.A32.3.91.960916000419.15201B-100000@aix07.zdv.uni-tuebingen.de>,
Thomas Wurst <zxmjx02@aix07.zdv.uni-tuebingen.de> wrote:
> Hello!
>
> Yet another question: I try to create a colo[u]r window with
> GetNewCWindow() and as soon as it's shown my whole screen turns
Well, it's hard to tell what you're doing without seeing code...
--
Greg Chapman
Mac Developer - Robarts Research Institute
Advanced Imaging Research Group (AIRG)
- -
"You! Out of the gene pool!"
+++++++++++++++++++++++++++
From Thomas Wurst <zxmjx02@aix12.zdv.uni-tuebingen.de>
Date: Wed, 18 Sep 1996 23:17:14 +0200
Organization: InterNetNews at ZDV Uni-Tuebingen
On Mon, 16 Sep 1996, Greg Chapman wrote:
> In article
> <Pine.A32.3.91.960916000419.15201B-100000@aix07.zdv.uni-tuebingen.de>,
> Thomas Wurst <zxmjx02@aix07.zdv.uni-tuebingen.de> wrote:
> > Hello!
> > Yet another question: I try to create a colo[u]r window with
> > GetNewCWindow() and as soon as it's shown my whole screen turns
>
> Well, it's hard to tell what you're doing without seeing code...
> Greg Chapman
SORRY!
I simply forgot to include the code, but now I have it with me...
The responsible routine is:
Boolean cmd_New(WindowPtr *thisWindow, Boolean newDoc)
{
if ((*thisWindow=GetNewWindow(rVectors, NIL, (WindowPtr)kInFront)) == NIL)
return FALSE;
[unrelated stuff deleted]
if (newDoc) ShowWindow(*thisWindow);
return TRUE;
}
And the calling routine looks like that:
{
[unrelated stuff deleted]
if (cmd_New(&theWindow, FALSE) == FALSE || theWindow == NIL)
return;
[unrelated stuff deleted]
SetWTitle(theWindow, c2pstr(windowTitle));
window_Position(theWindow); // does actually NOTHING
[unrelated stuff deleted]
ShowWindow(theWindow);
}
Looks very simple... But as I stated in my question, it is not working
when I use 'GetNewCWindow()' -- even when I'm providing a 'wctb' with the
same resource ID as my 'WIND'.
All I get is a b/w window and a b/w screen (desktop pattern, etc.), too.
But using the routines as shown above (with 'GetNewWindow()' and no
'wctb' resource) gives me the pleasure of a fine-colo[u]red window.
I also tried to use the 'wctb' out of the system resource fork (changed
the ID so that it matched that of my 'WIND', unchecked the system heap
bit) but that trick wasn't working either.
SO... AM I MISSING SOMETHING? AM I DOING THE WRONG THINGS?
Looking into 'Inside Macintosh MTBE' gives me only the advice with the
'wctb' and the code shown above is pretty close to that seen in IM...
Any help appreciated, Thomas.
---------------------------
From anubis@best.com (Jon "Andy" Beyer)
Subject: [Q] Hiliting Text in C
Date: 18 Sep 1996 08:18:05 GMT
Organization: Chrome Tiger Software
Can someone translate this into C from Pascal for me? It's been a long
time (thank god) since I've used Pascal, and I'm not sure where my ref.
books are...
BitClr(Ptr(HiliteMode), pHiliteBit);
This is what is supposed to be called just before an InvertRect() call
when hiliting text, and I'm not sure how to do this in C.
answer via reply to this or send me email:
anubis@best.com
Thanks all!
+++++++++++++++++++++++++++
From francois-regis.degott@imag.fr (Fr. Degott)
Date: 18 Sep 1996 10:02:11 GMT
Organization: LogiMath - LMC-IMAG - Grenoble
In article <anubis-1809960123330001@nntp.best.com>, anubis@best.com (Jon
"Andy" Beyer) wrote:
> Can someone translate this into C from Pascal for me? It's been a long
> time (thank god) since I've used Pascal, and I'm not sure where my ref.
> books are...
> This is what is supposed to be called just before an InvertRect() call
> when hiliting text, and I'm not sure how to do this in C.
> BitClr(Ptr(HiliteMode), pHiliteBit);
BitClr((Ptr)HiliteMode, pHiliteBit);
_____________________________________________________________________________
Fr. Degott (Francois-Regis.Degott@imag.fr)
LogiMath, Lab. LMC-IMAG - Grenoble - France
+++++++++++++++++++++++++++
From awiner@oracle.com (Adam Winer)
Date: Wed, 18 Sep 1996 17:22:57 -0800
Organization: Oracle Corporation
In article <francois-regis.degott-1809961202510001@harpie.imag.fr>,
francois-regis.degott@imag.fr (Fr. Degott) wrote:
> In article <anubis-1809960123330001@nntp.best.com>, anubis@best.com (Jon
> "Andy" Beyer) wrote:
>
> > Can someone translate this into C from Pascal for me? It's been a long
> > time (thank god) since I've used Pascal, and I'm not sure where my ref.
> > books are...
> > This is what is supposed to be called just before an InvertRect() call
> > when hiliting text, and I'm not sure how to do this in C.
> > BitClr(Ptr(HiliteMode), pHiliteBit);
>
> BitClr((Ptr)HiliteMode, pHiliteBit);
The correct Universal Headers code would be:
LMSetHiliteMode(LMGetHiliteMode() & 0x7f);
-- Adam Winer
awiner@us.oracle.com
--
Adam Winer
awiner@us.oracle.com
Technical Staff, Oracle Corp.
---------------------------
From g-kendall@nwu.edu (Brian Kendall)
Subject: [Q] What is QuickDraw 3D and QuickDraw GX?
Date: Mon, 16 Sep 1996 16:52:43 -0400
Organization: Programmer
Hi there!
What is QuickDraw 3D and QuickDraw GX? I've heard people talking about it
but I don't know what it is! :) Any info would be nice.
Brian K.
ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
"If you take cranberries and stew them like apple sauce, it tastes
much more like prunes then rhubarb does." ã Groucho Marx
ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
+++++++++++++++++++++++++++
From "Thomas L. Ferrell" <ferrelltl@ornl.gov>
Date: 17 Sep 1996 03:10:41 GMT
Organization: Oak Ridge National Lab
Others can give you Apple's descriptive web sites,but very,very briefly,
QD 3D is a program that is for use by creators of graphics software that
facilitates drawing in 3D and you can download it for power macs (only)
from Apple. QD GX comes as a supplement to System 7.5 and allows such
things as printing by drag/drop onto a desktop printer icon (especially
useful in networked situations).
g-kendall@nwu.edu (Brian Kendall) wrote:
>
>Hi there!
>
>What is QuickDraw 3D and QuickDraw GX? I've heard people talking about it
>but I don't know what it is! :) Any info would be nice.
>
>Brian K.
>
>ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
>"If you take cranberries and stew them like apple sauce, it tastes
>much more like prunes then rhubarb does." ã Groucho Marx
>ãããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããããã
+++++++++++++++++++++++++++
From mouser@zercom.net (Martin-Gilles Lavoie)
Date: 18 Sep 1996 20:10:17 GMT
Organization: Groupimage, inc.
In article <51l4rh$ltl@stc06.ctd.ornl.gov>, "Thomas L. Ferrell"
<ferrelltl@ornl.gov> wrote:
> Others can give you Apple's descriptive web sites,but very,very briefly,
> QD 3D is a program that is for use by creators of graphics software that
> facilitates drawing in 3D and you can download it for power macs (only)
> from Apple. QD GX comes as a supplement to System 7.5 and allows such
> things as printing by drag/drop onto a desktop printer icon (especially
> useful in networked situations).
Actually, QD GX has been around long than 7.5 has.
--
Martin-Gilles Lavoie
"The only trinary-state binary system known to live"
[Develop issue 24, page 4]
+++++++++++++++++++++++++++
From passenger@cybercom.net (T. Vector)
Date: Wed, 18 Sep 1996 23:00:30 -0400
Organization: Cyber Access Internet Services (617) 396-0491
In article <g-kendall-1609961652430001@lucky134.nuts.nwu.edu>,
g-kendall@nwu.edu (Brian Kendall) wrote:
>Hi there!
>
>What is QuickDraw 3D and QuickDraw GX? I've heard people talking about it
>but I don't know what it is! :) Any info would be nice.
>
go to the Apple home pages, but....
GX is an object-based drawing environment that supports resolution-independent
line objects, bitmaps, etc, a new priting architecture that allows things
like watermarks,
and a new dynamic font format
3D is a 3D object drawing environment that supports plug-in renderers and
things like that.
---------------------------
From Shane Dunne <sdunne@irus.rri.uwo.ca>
Subject: [Q] sending files by FTP from a program
Date: Sat, 14 Sep 1996 01:39:28 +0000
Organization: Life Imaging Systems, Inc.
I would like to write an app which can conduct FTP sessions including
logging in to a server and sending and receiving files, all without any
user input. CyberDog can get files, but unless I'm missing something,
it can't send them. In a pinch, I could use an existing ftp app like
Fetch if it were scriptable. Please post any suggestions to this
newsgroup, and if possible also e-mail me at <sdunne@irus.rri.uwo.ca>,
so I don't miss your post. Many thanks in advance.
Shane Dunne
+++++++++++++++++++++++++++
From smfr@santafe.edu (Simon Fraser)
Date: Sat, 14 Sep 1996 22:39:06 -0700
Organization: Santa Fe Institute
In article <323A0CD0.5B1F@irus.rri.uwo.ca>, sdunne@irus.rri.uwo.ca wrote:
>I would like to write an app which can conduct FTP sessions including
>logging in to a server and sending and receiving files, all without any
>user input. CyberDog can get files, but unless I'm missing something,
>it can't send them. In a pinch, I could use an existing ftp app like
>Fetch if it were scriptable. Please post any suggestions to this
>newsgroup, and if possible also e-mail me at <sdunne@irus.rri.uwo.ca>,
>so I don't miss your post. Many thanks in advance.
Take a look at the NewsWatcher code:
<ftp://ftp.acns.nwu.edu/pub/newswatcher/>
it has some FTP functionality in there.
Simon
________________________________________________________________
Simon Fraser Santa Fe Institute
smfr@santafe.edu 1399 Hyde Park Road
http://www.santafe.edu/~smfr/ Santa Fe, NM 87501
+++++++++++++++++++++++++++
From paul@ljl.com (Paul Robichaux)
Date: Wed, 18 Sep 1996 12:14:37 -0500
Organization: LJL Enterprises
In article <323A0CD0.5B1F@irus.rri.uwo.ca>, sdunne@irus.rri.uwo.ca wrote:
>I would like to write an app which can conduct FTP sessions including
>logging in to a server and sending and receiving files, all without any
>user input. CyberDog can get files, but unless I'm missing something,
>it can't send them. In a pinch, I could use an existing ftp app like
>Fetch if it were scriptable. Please post any suggestions to this
>newsgroup, and if possible also e-mail me at <sdunne@irus.rri.uwo.ca>,
>so I don't miss your post. Many thanks in advance.
Check out the new PowerPlant Internet Classes on the CodeWarrior 10 CD.
There are classes for moving files via FTP.
Fetch and Anarchie are both scriptable, too. In the Script Editor, use
File | Open Dictionary to open either of them up and you'll find a rich
set of verbs.
-Paul
--
Paul Robichaux LJL Enterprises, Inc.
paul@ljl.com Be a cryptography user. Ask me how.
---------------------------
From mjunod@atl.lmco.com (Mike Junod)
Subject: diff on resource forks of duplicate files
Date: 9 Sep 1996 13:08:31 GMT
Organization: Lockheed Martin Advanced Technology Laboratories
If you duplicate a file in the Finder, will both files have the exact
same dat and resource forks? I was writing a simple diff program to
verify file are the same, and am finding that the resource forks are not
equivalent. Is there some unique Finder info stored in each resource
fork?
Is there any utility out there already that tells if 2 files are binary
equivalent? I want to verify that if a file is compressed and encrypted
and then decrypted and uncompressed, you get the exact original file
back.
Thanks for any help!
--
Mike Junod
Lockheed Martin Advanced Technology Laboratories
1 Federal Street Internet: mjunod@atl.lmco.com
A&E Building 3W Voice: 609-338-3947
Camden, NJ 08102 Fax: 609-338-4144
+++++++++++++++++++++++++++
From refiegle@mail.delcoelect.com (Richard E. Fiegle)
Date: Tue, 10 Sep 1996 07:12:10 -0600
Organization: Delco Electronics
In article <1996Sep9.085841@atl.lmco.com>, mjunod@atl.lmco.com (Mike
Junod) wrote:
> If you duplicate a file in the Finder, will both files have the exact
> same dat and resource forks? I was writing a simple diff program to
> verify file are the same, and am finding that the resource forks are not
> equivalent. Is there some unique Finder info stored in each resource
> fork?
>
> Is there any utility out there already that tells if 2 files are binary
> equivalent? I want to verify that if a file is compressed and encrypted
> and then decrypted and uncompressed, you get the exact original file
> back.
>
I noticed the same thing on a program I worked on a couple of years
ago. It appears that the "header" of the resource file is typically
(always?) different for 2 duplicate files.
I changed my routine to ignore this header:
verify_rsrc_fork(long file_size, Ptr s_buffer, short source_ref, short dest_ref)
{
long count = 16; /* Need to read in the first 16 bytes */
OSErr err = FSRead(source_ref, &count, s_buffer); /* Read source */
err = FSRead(dest_ref, &count, d_buffer); /* Read destination */
long pos = count; /* Just read 16 bytes, move file position */
long offset_to_data = *((long *)(s_buffer)); /* Get offset to data */
count = offset_to_data - 16; /* Skip "header" bytes */
err = FSRead(source_ref, &count, s_buffer); /* Read source file header */
err = FSRead(dest_ref, &count, d_buffer); /* Read other file header */
pos = pos + count; /* Just read header, move file position */
file_size = file_size - offset_to_data; /* Calculate "new" file size */
// Proceed to verify the bytes in the file starting at
// position pos, up to pos+file_size, using memcmp, etc.
/* Code ommitted */
return(error)
}
--
Richard E. Fiegle
Opinions expressed are mine, not necessarily those of my employer
+++++++++++++++++++++++++++
From heaney@crl.com (John S. Heaney)
Date: 10 Sep 1996 13:25:14 -0700
Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest]
In article <1996Sep9.085841@atl.lmco.com>,
Mike Junod <mjunod@atl.lmco.com> wrote:
>Is there any utility out there already that tells if 2 files are binary
>equivalent? I want to verify that if a file is compressed and encrypted
>and then decrypted and uncompressed, you get the exact original file
>back.
Resorcerer will do this (and much more, of course).
--
John Heaney Time flies whether you're having fun or not.
heaney@crl.com
+++++++++++++++++++++++++++
From david_rehring@gdt.com (David Rehring)
Date: Tue, 10 Sep 1996 14:54:00 -0700
Organization: GDT Softworks, Inc.
In article <1996Sep9.085841@atl.lmco.com>,
Mike Junod <mjunod@atl.lmco.com> wrote:
>Is there any utility out there already that tells if 2 files are binary
>equivalent? I want to verify that if a file is compressed and encrypted
>and then decrypted and uncompressed, you get the exact original file
>back.
ResCompare does this. It will compare both the data fork and resource
fork and tell you what differences are present. And it costs 100% less
than Resorcerer (that is, it's FREE). You should be able to find it on
most Mac archive sites. It also will create updaters.
Later,
--
David Rehring
Senior Software Engineer
GDT Softworks, Inc.
And all around insane guy!
+++++++++++++++++++++++++++
From mills@multiad.com (Steve Mills)
Date: Wed, 11 Sep 1996 16:35:22 -0500
Organization: Multi-Ad Services, Inc.
>In article <1996Sep9.085841@atl.lmco.com>,
>Mike Junod <mjunod@atl.lmco.com> wrote:
>
>>Is there any utility out there already that tells if 2 files are binary
>>equivalent? I want to verify that if a file is compressed and encrypted
>>and then decrypted and uncompressed, you get the exact original file
>>back.
ResCompare. It's free.
Steve Mills, software engineer
Multi-Ad Services, Inc. / mills@multiad.com
Home: muff@visi.com
+++++++++++++++++++++++++++
From gregd@netcom.com (Greg Dougherty)
Date: Thu, 12 Sep 1996 17:57:00 -0700
Organization: Apple Computer, Inc.
In article <1996Sep9.085841@atl.lmco.com>, mjunod@atl.lmco.com (Mike
Junod) wrote:
> If you duplicate a file in the Finder, will both files have the exact
> same dat and resource forks? I was writing a simple diff program to
> verify file are the same, and am finding that the resource forks are not
> equivalent. Is there some unique Finder info stored in each resource
> fork?
>
> Is there any utility out there already that tells if 2 files are binary
> equivalent? I want to verify that if a file is compressed and encrypted
> and then decrypted and uncompressed, you get the exact original file
> back.
You could try Resorcerer, which does resource compares (and you can have
it include the data fork as one of the "resources" to compare).
--
#include <Standard Disclaimers.h>
- -Greg
+++++++++++++++++++++++++++
From Ben Rubinstein <benr@cogapp.com>
Date: Wed, 18 Sep 1996 15:56:27 +0100
Organization: Cognitive Applications
In article <1996Sep9.085841@atl.lmco.com>, mjunod@atl.lmco.com (Mike
Junod) wrote:
> If you duplicate a file in the Finder, will both files have the exact
> same dat and resource forks? I was writing a simple diff program to
> verify file are the same, and am finding that the resource forks are not
> equivalent. Is there some unique Finder info stored in each resource
> fork?
The File System uses part of the resource fork for its own purposes -
this is documented somewhere in Inside Mac or the tech notes - sorry
can't remember where offhand.
I think though that the size of the File System part is variable (not
just 16 bytes), with the first two? four? bytes giving the size of this
part.
Now that Apple's got IM up on the Web, you could try searching there for
the truth... (<http://devworld.apple.com/dev/insidemac.shtml>)
Good luck,
Ben Rubinstein | Phone: +44 (0)1273-821600 Fax: 728866
Cognitive Applications Ltd | Email: benr@cogapp.com
---------------------------
End of C.S.M.P. Digest
**********************